Test: /ext/openssl/tests/bug54992.phpt - Version 7.4.0        

Bug #54992 Stream not closed and error not returned when SSL CN_match fails
Submitted: 2011-06-04 14:10:04 Modified: 2011-06-08 02:25:10
From: laird_ngrps Assigned: cataphract
Status: Closed Package: Streams related
PHP Version: 5.3.6 OS: Linux

There are 29 different diffs reported by users for this test.

Count Diff
2 (6%)
001+ Warning: stream_socket_client(): SSL: Success in /tmp/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
001- Warning: stream_socket_client(): Peer certificate CN=`bug54992_actual_peer_name' did not match expected CN=`bug54992_expected_peer_name' in %s on line %d
2 (6%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /opt/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
001- Warning: stream_socket_client(): Peer certificate CN=`bug54992_actual_peer_name' did not match expected CN=`bug54992_expected_peer_name' in %s on line %d
1 (3%)
001+ Xdebug requires Zend Engine API version 320180731.
002+ The Zend Engine API version 320190902 which is installed, is newer.
003+ Contact Derick Rethans at https://xdebug.org/docs/faq#api for a later version of Xdebug.
004+
005+
1 (3%)
001+ Warning: stream_socket_client(): SSL: Success in /usr/src/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
001- Warning: stream_socket_client(): Peer certificate CN=`bug54992_actual_peer_name' did not match expected CN=`bug54992_expected_peer_name' in %s on line %d
1 (3%)
001+ Warning: stream_socket_client(): SSL: Success in /usr/local/src/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
001- Warning: stream_socket_client(): Peer certificate CN=`bug54992_actual_peer_name' did not match expected CN=`bug54992_expected_peer_name' in %s on line %d
1 (3%)
001+ Warning: stream_socket_client(): SSL: Success in /opt/downloads/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
001- Warning: stream_socket_client(): Peer certificate CN=`bug54992_actual_peer_name' did not match expected CN=`bug54992_expected_peer_name' in %s on line %d
1 (3%)
001+ Warning: stream_socket_client(): SSL: Success in /opt/LNMP/php/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
001- Warning: stream_socket_client(): Peer certificate CN=`bug54992_actual_peer_name' did not match expected CN=`bug54992_expected_peer_name' in %s on line %d
1 (3%)
001+ Warning: stream_socket_client(): SSL: Success in /media/pi/4ab9cfd7-be99-443b-bf0a-9dc34269a5f0/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
001- Warning: stream_socket_client(): Peer certificate CN=`bug54992_actual_peer_name' did not match expected CN=`bug54992_expected_peer_name' in %s on line %d
1 (3%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /tmp/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
001- Warning: stream_socket_client(): Peer certificate CN=`bug54992_actual_peer_name' did not match expected CN=`bug54992_expected_peer_name' in %s on line %d
1 (3%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /home/ats/php-src-php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
001- Warning: stream_socket_client(): Peer certificate CN=`bug54992_actual_peer_name' did not match expected CN=`bug54992_expected_peer_name' in %s on line %d
1 (3%)
001+ Warning: openssl_csr_new(): Error loading request_extensions_section section v3_req of /usr/local/etc/ssl/openssl.cnf in /root/php-7.4.0/ext/openssl/tests/CertificateGenerator.inc on line 97
002+
003+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /root/php-7.4.0/ext/openssl/tests/CertificateGenerator.inc on line 100
004+
005+ Warning: openssl_x509_export(): cannot get cert from parameter 1 in /root/php-7.4.0/ext/openssl/tests/CertificateGenerator.inc on line 104
006+
007+ Warning: stream_socket_client(): SSL: Connection reset by peer in /root/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
001- Warning: stream_socket_client(): Peer certificate CN=`bug54992_actual_peer_name' did not match expected CN=`bug54992_expected_peer_name' in %s on line %d
1 (3%)
001+ PHP Warning: PHP Startup: ssh2: Unable to initialize module
002+ Module compiled with module API=20180731
003+ PHP compiled with module API=20190902
004+ These options need to match
005+ in Unknown on line 0
001- Warning: stream_socket_client(): Peer certificate CN=`bug54992_actual_peer_name' did not match expected CN=`bug54992_expected_peer_name' in %s on line %d
003- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d
004-
005- Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in %s on line %d
007+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/src/php/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
1 (3%)
001+ PHP Warning: PHP Startup: redis: Unable to initialize module
002+ Module compiled with module API=20180731
003+ PHP compiled with module API=20190902
004+ These options need to match
005+ in Unknown on line 0
006+ PHP Warning: PHP Startup: zip: Unable to initialize module
007+ Module compiled with module API=20180731
008+ PHP compiled with module API=20190902
009+ These options need to match
010+ in Unknown on line 0
001- Warning: stream_socket_client(): Peer certificate CN=`bug54992_actual_peer_name' did not match expected CN=`bug54992_expected_peer_name' in %s on line %d
012+ Warning: stream_socket_client(): Peer certificate CN=`bug54992_actual_peer_name' did not match expected CN=`bug54992_expected_peer_name' in /usr/src/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
013+
1 (3%)
001+ PHP Warning: PHP Startup: redis: Unable to initialize module
002+ Module compiled with module API=20170718
003+ PHP compiled with module API=20190902
004+ These options need to match
005+ in Unknown on line 0
006+ PHP Warning: PHP Startup: Unable to load dynamic library 'mongodb.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/mongodb.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/mongodb.so: undefined symbol: _zval_ptr_dtor), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/mongodb.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/mongodb.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
007+ PHP Warning: PHP Startup: Unable to load dynamic library 'swoole.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole.so: undefined symbol: _zval_ptr_dtor), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
008+ PHP Warning: PHP Startup: Unable to load dynamic library 'swoole_async.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole_async.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole_async.so: undefined symbol: swAio_handler_read), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole_async.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole_async.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
009+
1 (3%)
001+ PHP Warning: PHP Startup: ncurses: Unable to initialize module
002+ Module compiled with module API=20180731
003+ PHP compiled with module API=20190902
004+ These options need to match
005+ in Unknown on line 0
006+
007+ Warning: stream_socket_client(): SSL: Success in /root/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
001- Warning: stream_socket_client(): Peer certificate CN=`bug54992_actual_peer_name' did not match expected CN=`bug54992_expected_peer_name' in %s on line %d
1 (3%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'zip' (tried: /usr/local/apps/php740/lib/extensions/no-debug-zts-20190902/zip (/usr/local/apps/php740/lib/extensions/no-debug-zts-20190902/zip: cannot open shared object file: No such file or directory), /usr/local/apps/php740/lib/extensions/no-debug-zts-20190902/zip.so (/usr/local/apps/php740/lib/extensions/no-debug-zts-20190902/zip.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
002+
1 (3%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/local/lib/php/extensions/no-debug-zts-20190902/redis.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/redis.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20190902/redis.so.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'rrd.so' (tried: /usr/local/lib/php/extensions/no-debug-zts-20190902/rrd.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/rrd.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20190902/rrd.so.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/rrd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
003+
1 (3%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/local/lib/php/extensions/no-debug-zts-20190902/redis.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/redis.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20190902/redis.so.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'parallel.so' (tried: /usr/local/lib/php/extensions/no-debug-zts-20190902/parallel.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/parallel.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20190902/parallel.so.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/parallel.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
001- Warning: stream_socket_client(): Peer certificate CN=`bug54992_actual_peer_name' did not match expected CN=`bug54992_expected_peer_name' in %s on line %d
003- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d
004-
005- Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in %s on line %d
004+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/tronglote/programs/php-src-php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
006+ PHP Notice: fwrite(): write of 1 bytes failed with errno=32 Broken pipe in /home/tronglote/programs/php-src-php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc on line 158
1 (3%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'php_gd2.dll' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/php_gd2.dll (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/php_gd2.dll: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/php_gd2.dll.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/php_gd2.dll.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'swoole.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
003+ PHP Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/redis.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/redis.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/redis.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
004+ PHP Warning: PHP Startup: Unable to load dynamic library 'swoole_loader71.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole_loader71.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole_loader71.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole_loader71.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole_loader71.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
005+ PHP Notice: Undefined variable: errno in /usr/local/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
006+ PHP Notice: Undefined variable: errstr in /usr/local/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
007+ PHP Warning: stream_socket_server() has been disabled for security reasons in /usr/local/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
001- Warning: stream_socket_client(): Peer certificate CN=`bug54992_actual_peer_name' did not match expected CN=`bug54992_expected_peer_name' in %s on line %d
003- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d
004-
005- Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in %s on line %d
009+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/local/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
1 (3%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: /usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20190902/mysqli (/usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20190902/mysqli: cannot open shared object file: No such file or directory), /usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20190902/mysqli.so (/usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20190902/mysqli.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
001- Warning: stream_socket_client(): Peer certificate CN=`bug54992_actual_peer_name' did not match expected CN=`bug54992_expected_peer_name' in %s on line %d
003+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
003- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d
004-
005- Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in %s on line %d
005+ PHP Notice: fwrite(): write of 1 bytes failed with errno=32 Broken pipe in /root/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc on line 158
1 (3%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/curl (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/curl: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/curl.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/curl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
002+