Test: /ext/openssl/tests/bug54992.phpt - Version 7.4.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 16 different diffs reported by users for this test.

Count Diff
3 (16%)
001+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: 002+ error:1404B417:SSL routines:ST_CONNECT:sslv3 alert illegal parameter in /usr/local/src/OSS/php-7.4.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
2 (11%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/lib64/extensions/no-debug-zts-20190902/gd.so (/usr/lib64/extensions/no-debug-zts-20190902/gd.so: cannot open shared object file: No such file or directory), /usr/lib64/extensions/no-debug-zts-20190902/gd.so.so (/usr/lib64/extensions/no-debug-zts-20190902/gd.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 'mysql.so' (tried: /usr/lib64/extensions/no-debug-zts-20190902/mysql.so (/usr/lib64/extensions/no-debug-zts-20190902/mysql.so: cannot open shared object file: No such file or directory), /usr/lib64/extensions/no-debug-zts-20190902/mysql.so.so (/usr/lib64/extensions/no-debug-zts-20190902/mysql.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 'wddx.so' (tried: /usr/lib64/extensions/no-debug-zts-20190902/wddx.so (/usr/lib64/extensions/no-debug-zts-20190902/wddx.so: cannot open shared object file: No such file or directory), /usr/lib64/extensions/no-debug-zts-20190902/wddx.so.so (/usr/lib64/extensions/no-debug-zts-20190902/wddx.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 'zip.so' (tried: /usr/lib64/extensions/no-debug-zts-20190902/zip.so (/usr/lib64/extensions/no-debug-zts-20190902/zip.so: cannot open shared object file: No such file or directory), /usr/lib64/extensions/no-debug-zts-20190902/zip.so.so (/usr/lib64/extensions/no-debug-zts-20190902/zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 005+
1 (5%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/src/php-7.4.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 /home/gomitolops/php-7.4.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(): 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.4.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: openssl_x509_export_to_file(): cannot get cert from parameter 1 in /home/cwang/php-7.4.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_new(): private key length is too short; it needs to be at least 384 bits, not 0 in /home/cwang/php-7.4.9/ext/openssl/tests/CertificateGenerator.inc on line 128 004+ 005+ Warning: openssl_csr_new(): Unable to generate a private key in /home/cwang/php-7.4.9/ext/openssl/tests/CertificateGenerator.inc on line 128 006+ 007+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /home/cwang/php-7.4.9/ext/openssl/tests/CertificateGenerator.inc on line 132 003- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 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) 009+ Fatal error: Uncaught Exception: Failed to create certificate in /home/cwang/php-7.4.9/ext/openssl/tests/CertificateGenerator.inc:135 010+ Stack trace: 011+ #0 %s/bug54992.php(40): CertificateGenerator->saveNewCertAsFileWithKey('bug54992_actual...', '/home/cwang/php...') 012+ #1 {main} 013+ thrown in /home/cwang/php-7.4.9/ext/openssl/tests/CertificateGenerator.inc on line 135
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'openssl' (tried: /usr/local/php7.4.9/lib/php/extensions/no-debug-non-zts-20190902/openssl (/usr/local/php7.4.9/lib/php/extensions/no-debug-non-zts-20190902/openssl: cannot open shared object file: No such file or directory), /usr/local/php7.4.9/lib/php/extensions/no-debug-non-zts-20190902/openssl.so (/usr/local/php7.4.9/lib/php/extensions/no-debug-non-zts-20190902/openssl.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 /home/jdruguet/php-7.4.9/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 /home/jdruguet/php-7.4.9/ext/openssl/tests/ServerClientTestCase.inc on line 158
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: /usr/local/lib/php/extensions/no-debug-zts-20190902/mysqli (/usr/local/lib/php/extensions/no-debug-zts-20190902/mysqli: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20190902/mysqli.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/mysqli.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 002+
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'gd2' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/gd2 (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/gd2: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/gd2.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/gd2.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 002+
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'curl.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/curl.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/curl.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/curl.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/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-non-zts-20190902/fileinfo.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/fileinfo.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/fileinfo.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/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 'gd.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/gd.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/gd.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/gd.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/gd.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 'json.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/json.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/json.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/json.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/json.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-non-zts-20190902/phar.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/phar.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/phar.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/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-non-zts-20190902/zip.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/zip.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/zip.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/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' (tried: /usr/local/lib/php/extensions/no-debug-zts-20190902/curl (/usr/local/lib/php/extensions/no-debug-zts-20190902/curl: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20190902/curl.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/curl.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 'mysqli' (tried: /usr/local/lib/php/extensions/no-debug-zts-20190902/mysqli (/usr/local/lib/php/extensions/no-debug-zts-20190902/mysqli: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20190902/mysqli.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/mysqli.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 003+
1 (5%)
001+ PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'mysqli.so' in Unknown on line 0 002+
1 (5%)
001+ PHP Warning: Module 'curl' already loaded 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 /home/wauditer/gun/php-7.4.9/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 /home/wauditer/gun/php-7.4.9/ext/openssl/tests/ServerClientTestCase.inc on line 158
1 (5%)
001+ 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(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/appy/php-7.4.9/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 /usr/appy/php-7.4.9/ext/openssl/tests/ServerClientTestCase.inc on line 158
1 (5%)
001+ Failed loading /usr/local/php-7.3.4/modules/opcache.so: /usr/local/php-7.3.4/modules/opcache.so: cannot open shared object file: No such file or directory 002+
1 (5%)
001+ Failed loading /usr/local/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so: /usr/local/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so: undefined symbol: gc_globals 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 /usr/local/src/php-7.4.9/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