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

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 18 different diffs reported by users for this test.

Count Diff
3 (14%)
001+ Warning: openssl_x509_export_to_file(): cannot get cert from parameter 1 in /opt/php-7.3.9/ext/openssl/tests/CertificateGenerator.inc on line 82
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: openssl_csr_sign(): cannot get CSR from parameter 1 in /opt/php-7.3.9/ext/openssl/tests/CertificateGenerator.inc on line 100
004+
005+ Warning: openssl_x509_export(): cannot get cert from parameter 1 in /opt/php-7.3.9/ext/openssl/tests/CertificateGenerator.inc on line 104
006+
007+ Warning: openssl_pkey_export(): cannot get key from parameter 1 in /opt/php-7.3.9/ext/openssl/tests/CertificateGenerator.inc on line 107
008+
009+ Warning: failed loading cafile stream: `/opt/php-7.3.9/ext/openssl/tests/bug54992-ca.pem.tmp' in /opt/php-7.3.9/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
010+
2 (10%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'xhprof.so' (tried: /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20180731/xhprof.so (/usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20180731/xhprof.so: cannot open shared object file: No such file or directory), /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20180731/xhprof.so.so (/usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20180731/xhprof.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
002+
1 (5%)
001+ /usr/src/php-7.3.9/sapi/cli/php: symbol lookup error: /usr/src/php-7.3.9/modules/openssl.so: undefined symbol: EVP_PKEY_get0_RSA
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
002-
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
006- bool(false)
1 (5%)
001+ Failed loading /usr/share/lib/php/extensions/no-debug-non-zts-20131226/ioncube_loader_lin_5.6.so: /usr/share/lib/php/extensions/no-debug-non-zts-20131226/ioncube_loader_lin_5.6.so: undefined symbol: zend_block_interruptions
002+ Failed loading /usr/share/lib/php/extensions/no-debug-non-zts-20131226/ZendGuardLoader.so: /usr/share/lib/php/extensions/no-debug-non-zts-20131226/ZendGuardLoader.so: undefined symbol: _zval_ptr_dtor
003+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/share/lib/php/extensions/no-debug-non-zts-20131226/ssh2.so' (tried: /usr/share/lib/php/extensions/no-debug-non-zts-20131226/ssh2.so (/usr/share/lib/php/extensions/no-debug-non-zts-20131226/ssh2.so: undefined symbol: zval_used_for_init), /usr/share/lib/php/extensions///usr/share/lib/php/extensions/no-debug-non-zts-20131226/ssh2.so.so (/usr/share/lib/php/extensions///usr/share/lib/php/extensions/no-debug-non-zts-20131226/ssh2.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
005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/local/src/apache2.2019-09-18.centos7.64bit.php7/php-7.3.9/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
1 (5%)
001+ PHP Warning: Failed loading Zend extension 'opcache.so' (tried: /opt/lib/php/extensions/no-debug-non-zts-20180731/opcache.so (/opt/lib/php/extensions/no-debug-non-zts-20180731/opcache.so: cannot open shared object file: No such file or directory), /opt/lib/php/extensions/no-debug-non-zts-20180731/opcache.so.so (/opt/lib/php/extensions/no-debug-non-zts-20180731/opcache.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 'redis.so' (tried: /opt/lib/php/extensions/no-debug-non-zts-20180731/redis.so (/opt/lib/php/extensions/no-debug-non-zts-20180731/redis.so: cannot open shared object file: No such file or directory), /opt/lib/php/extensions/no-debug-non-zts-20180731/redis.so.so (/opt/lib/php/extensions/no-debug-non-zts-20180731/redis.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 'apcu.so' (tried: /opt/lib/php/extensions/no-debug-non-zts-20180731/apcu.so (/opt/lib/php/extensions/no-debug-non-zts-20180731/apcu.so: cannot open shared object file: No such file or directory), /opt/lib/php/extensions/no-debug-non-zts-20180731/apcu.so.so (/opt/lib/php/extensions/no-debug-non-zts-20180731/apcu.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 'imagick.so' (tried: /opt/lib/php/extensions/no-debug-non-zts-20180731/imagick.so (/opt/lib/php/extensions/no-debug-non-zts-20180731/imagick.so: cannot open shared object file: No such file or directory), /opt/lib/php/extensions/no-debug-non-zts-20180731/imagick.so.so (/opt/lib/php/extensions/no-debug-non-zts-20180731/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
005+
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'curl.so' (tried: /usr/local/php/lib/php/extensions/no-debug-zts-20180731/curl.so (/usr/local/php/lib/php/extensions/no-debug-zts-20180731/curl.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-zts-20180731/curl.so.so (/usr/local/php/lib/php/extensions/no-debug-zts-20180731/curl.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 'fileinfo.so' (tried: /usr/local/php/lib/php/extensions/no-debug-zts-20180731/fileinfo.so (/usr/local/php/lib/php/extensions/no-debug-zts-20180731/fileinfo.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-zts-20180731/fileinfo.so.so (/usr/local/php/lib/php/extensions/no-debug-zts-20180731/fileinfo.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 'json.so' (tried: /usr/local/php/lib/php/extensions/no-debug-zts-20180731/json.so (/usr/local/php/lib/php/extensions/no-debug-zts-20180731/json.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-zts-20180731/json.so.so (/usr/local/php/lib/php/extensions/no-debug-zts-20180731/json.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 'mcrypt.so' (tried: /usr/local/php/lib/php/extensions/no-debug-zts-20180731/mcrypt.so (/usr/local/php/lib/php/extensions/no-debug-zts-20180731/mcrypt.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-zts-20180731/mcrypt.so.so (/usr/local/php/lib/php/extensions/no-debug-zts-20180731/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
005+ PHP Warning: PHP Startup: Unable to load dynamic library 'phar.so' (tried: /usr/local/php/lib/php/extensions/no-debug-zts-20180731/phar.so (/usr/local/php/lib/php/extensions/no-debug-zts-20180731/phar.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-zts-20180731/phar.so.so (/usr/local/php/lib/php/extensions/no-debug-zts-20180731/phar.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
006+ PHP Warning: PHP Startup: Unable to load dynamic library 'zip.so' (tried: /usr/local/php/lib/php/extensions/no-debug-zts-20180731/zip.so (/usr/local/php/lib/php/extensions/no-debug-zts-20180731/zip.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-zts-20180731/zip.so.so (/usr/local/php/lib/php/extensions/no-debug-zts-20180731/zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
007+
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'curl.so' (tried: /usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/curl.so (/usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/curl.so: cannot open shared object file: No such file or directory), /usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/curl.so.so (/usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/curl.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 'fileinfo.so' (tried: /usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/fileinfo.so (/usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/fileinfo.so: cannot open shared object file: No such file or directory), /usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/fileinfo.so.so (/usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/fileinfo.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 'json.so' (tried: /usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/json.so (/usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/json.so: cannot open shared object file: No such file or directory), /usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/json.so.so (/usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/json.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 'phar.so' (tried: /usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/phar.so (/usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/phar.so: cannot open shared object file: No such file or directory), /usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/phar.so.so (/usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/phar.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
005+ PHP Warning: PHP Startup: Unable to load dynamic library 'zip.so' (tried: /usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/zip.so (/usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/zip.so: cannot open shared object file: No such file or directory), /usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/zip.so.so (/usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/zip.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
007+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/kk/php-7.3.9/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-zts-20180731/imagick.so (/usr/local/lib/php/extensions/no-debug-zts-20180731/imagick.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20180731/imagick.so.so (/usr/local/lib/php/extensions/no-debug-zts-20180731/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
002+ PHP Deprecated: Directive 'track_errors' is deprecated 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/m-ito/tmp/php-7.3.9/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'memcache.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20180731/memcache.so (Cannot open "/usr/local/lib/php/extensions/no-debug-non-zts-20180731/memcache.so"), /usr/local/lib/php/extensions/no-debug-non-zts-20180731/memcache.so.so (Cannot open "/usr/local/lib/php/extensions/no-debug-non-zts-20180731/memcache.so.so")) in Unknown on line 0
002+
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'openssl' (tried: /usr/local/lib/php/extensions/no-debug-zts-20180731/openssl (/usr/local/lib/php/extensions/no-debug-zts-20180731/openssl: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20180731/openssl.so (/usr/local/lib/php/extensions/no-debug-zts-20180731/openssl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
002+
1 (5%)
001+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
002+ error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/src/php-7.3.9/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 (5%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /build/php-7.3.9/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 (5%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /home/andres/Descargas/php-src/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 (5%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /tmp/php-7.3.9/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 (5%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /usr/local/src/php-7.3.9/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 (5%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/olivier/src/php-7.3.9/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
002-
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
1 (5%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/kit/php-7.3.9/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
002-
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
1 (5%)
001+ Xdebug could not open the remote debug file '/tmp/xdebug/xdebug.log'.
002+