]> granicus.if.org Git - php/commitdiff
fix ws
authorMichael Wallner <mike@php.net>
Thu, 17 Oct 2013 13:09:28 +0000 (15:09 +0200)
committerMichael Wallner <mike@php.net>
Thu, 17 Oct 2013 13:09:28 +0000 (15:09 +0200)
ext/openssl/tests/streams_crypto_method.phpt

index 7ac195bfb6ad9ed558550aa4c823d53057b4f249..97a6e9ee8ba853827bed817a8a92b38862202ea6 100644 (file)
@@ -19,13 +19,13 @@ function client($port, $method) {
 }
 
 function server($port, $transport) {
-        $context = stream_context_create();
+       $context = stream_context_create();
 
-        stream_context_set_option($context, 'ssl', 'local_cert', dirname(__FILE__) . '/streams_crypto_method.pem');
-        stream_context_set_option($context, 'ssl', 'allow_self_signed', true);
-        stream_context_set_option($context, 'ssl', 'verify_peer', false);
+       stream_context_set_option($context, 'ssl', 'local_cert', dirname(__FILE__) . '/streams_crypto_method.pem');
+       stream_context_set_option($context, 'ssl', 'allow_self_signed', true);
+       stream_context_set_option($context, 'ssl', 'verify_peer', false);
 
-        $server = stream_socket_server($transport . '127.0.0.1:' . $port, $errno, $errstr, STREAM_SERVER_BIND|STREAM_SERVER_LISTEN, $context);
+       $server = stream_socket_server($transport . '127.0.0.1:' . $port, $errno, $errstr, STREAM_SERVER_BIND|STREAM_SERVER_LISTEN, $context);
 
        $client = @stream_socket_accept($server);