com php-src: Fix test when run with openssl < 1.0.2 (reorder so no more SSLv2 message) Fix skip message to work: ext/standard/tests/str
eams/stream_socket_enable_crypto.phpt

From: Date: Wed, 20 Jan 2016 12:08:58 +0000
Subject: com php-src: Fix test when run with openssl < 1.0.2 (reorder so no more SSLv2 message) Fix skip message to work: ext/standard/tests/str
eams/stream_socket_enable_crypto.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-90712@lists.php.net to get a copy of this message
Commit: 3c8f287d5837f357605184cccd004de017b9f5b4 Author: Remi Collet <remi@php.net> Wed, 20 Jan 2016 13:08:58 +0100 Parents: 508d1dae25cb5b8a66f84b3686619bc9ab0a68f8 Branches: PHP-5.6 PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3c8f287d5837f357605184cccd004de017b9f5b4 Log: Fix test when run with openssl < 1.0.2 (reorder so no more SSLv2 message) Fix skip message to work Changed paths: M ext/standard/tests/streams/stream_socket_enable_crypto.phpt Diff: diff --git a/ext/standard/tests/streams/stream_socket_enable_crypto.phpt b/ext/standard/tests/streams/stream_socket_enable_crypto.phpt index e316096..f282c84 100644 --- a/ext/standard/tests/streams/stream_socket_enable_crypto.phpt +++ b/ext/standard/tests/streams/stream_socket_enable_crypto.phpt @@ -5,7 +5,7 @@ marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao p --SKIPIF-- <?php if (phpversion() < "5.3.0") { die('SKIP php version so lower.'); } -if (!extension_loaded('openssl')) { die('ext/openssl required'); } +if (!extension_loaded('openssl')) { die('skip ext/openssl required'); } if(substr(PHP_OS, 0, 3) == 'WIN' ) { die('skip not for windows'); } @@ -18,8 +18,8 @@ $sock = stream_socket_server($serverUri, $errno, $errstr); if (is_resource($sock)) { var_dump(stream_socket_enable_crypto($sock, false)); var_dump(stream_socket_enable_crypto($sock, true)); - var_dump(stream_socket_enable_crypto($sock, true, STREAM_CRYPTO_METHOD_SSLv2_CLIENT)); var_dump(stream_socket_enable_crypto($sock, true, STREAM_CRYPTO_METHOD_SSLv3_CLIENT)); + var_dump(stream_socket_enable_crypto($sock, true, STREAM_CRYPTO_METHOD_SSLv2_CLIENT)); var_dump(stream_socket_enable_crypto($sock, true, STREAM_CRYPTO_METHOD_SSLv23_CLIENT)); var_dump(stream_socket_enable_crypto($sock, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)); var_dump(stream_socket_enable_crypto($sock, true, STREAM_CRYPTO_METHOD_SSLv2_SERVER)); @@ -43,10 +43,10 @@ bool(false) Warning: stream_socket_enable_crypto(): When enabling encryption you must specify the crypto type in %s on line %d bool(false) -Warning: stream_socket_enable_crypto(): SSLv2 %s in %s on line %d +Warning: stream_socket_enable_crypto(): SSL: Broken pipe in %s on line %d bool(false) -Warning: stream_socket_enable_crypto(): SSL: Broken pipe in %s on line %d +Warning: stream_socket_enable_crypto(): SSL/TLS already set-up for this stream in %s on line %d bool(false) Warning: stream_socket_enable_crypto(): SSL/TLS already set-up for this stream in %s on line %d

« previous php.cvs (#90712) next »