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

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

Count Diff
1 (7%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/local/src/php-7.2.18/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 (7%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /data/download/php-7.2.18/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 (7%)
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 /root/php-7.2.18/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 10
001- Warning: stream_socket_client(): Peer certificate CN=`bug54992.local' did not match expected CN=`buga_buga' in %s on line %d
1 (7%)
001+ Warning: openssl_x509_export_to_file(): cannot get cert from parameter 1 in /root/compile/php-7.2.18/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 /root/compile/php-7.2.18/ext/openssl/tests/CertificateGenerator.inc on line 100
004+
005+ Warning: openssl_x509_export(): cannot get cert from parameter 1 in /root/compile/php-7.2.18/ext/openssl/tests/CertificateGenerator.inc on line 104
006+
007+ Warning: openssl_pkey_export(): cannot get key from parameter 1 in /root/compile/php-7.2.18/ext/openssl/tests/CertificateGenerator.inc on line 107
008+
009+ Warning: failed loading cafile stream: `/root/compile/php-7.2.18/ext/openssl/tests/bug54992-ca.pem.tmp' in /root/compile/php-7.2.18/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
010+
1 (7%)
001+ Warning: openssl_x509_export_to_file(): cannot get cert from parameter 1 in /mnt/data/install/php/php-7.2.18/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 /mnt/data/install/php/php-7.2.18/ext/openssl/tests/CertificateGenerator.inc on line 100
004+
005+ Warning: openssl_x509_export(): cannot get cert from parameter 1 in /mnt/data/install/php/php-7.2.18/ext/openssl/tests/CertificateGenerator.inc on line 104
006+
007+ Warning: openssl_pkey_export(): cannot get key from parameter 1 in /mnt/data/install/php/php-7.2.18/ext/openssl/tests/CertificateGenerator.inc on line 107
008+
009+ Warning: failed loading cafile stream: `/mnt/data/install/php/php-7.2.18/ext/openssl/tests/bug54992-ca.pem.tmp' in /mnt/data/install/php/php-7.2.18/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
010+
1 (7%)
001+ PHP Warning: PHP Startup: zpa: Unable to initialize module
002+ Module compiled with module API=20131226
003+ PHP compiled with module API=20170718
004+ These options need to match
005+ in Unknown on line 0
006+
1 (7%)
001+ PHP Warning: PHP Startup: rocketmq: Unable to initialize module
002+ Module compiled with module API=20160303
003+ PHP compiled with module API=20170718
004+ These options need to match
005+ in Unknown on line 0
006+ PHP Warning: PHP Startup: rocketmq: Unable to initialize module
007+ Module compiled with module API=20160303
008+ PHP compiled with module API=20170718
009+ These options need to match
010+ in Unknown on line 0
011+ 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
013+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/local/php-7.2.18/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
1 (7%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'ssh2.so' (tried: /usr/local/lib/php/extensions/no-debug-zts-20170718/ssh2.so (/usr/local/lib/php/extensions/no-debug-zts-20170718/ssh2.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20170718/ssh2.so.so (/usr/local/lib/php/extensions/no-debug-zts-20170718/ssh2.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
002+
1 (7%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'ftp' (tried: /usr/local/lib/php/extensions/no-debug-zts-20170718/ftp (/usr/local/lib/php/extensions/no-debug-zts-20170718/ftp: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20170718/ftp.so (/usr/local/lib/php/extensions/no-debug-zts-20170718/ftp.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 'gd' (tried: /usr/local/lib/php/extensions/no-debug-zts-20170718/gd (/usr/local/lib/php/extensions/no-debug-zts-20170718/gd: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20170718/gd.so (/usr/local/lib/php/extensions/no-debug-zts-20170718/gd.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 'gmp' (tried: /usr/local/lib/php/extensions/no-debug-zts-20170718/gmp (/usr/local/lib/php/extensions/no-debug-zts-20170718/gmp: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20170718/gmp.so (/usr/local/lib/php/extensions/no-debug-zts-20170718/gmp.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 'ldap' (tried: /usr/local/lib/php/extensions/no-debug-zts-20170718/ldap (/usr/local/lib/php/extensions/no-debug-zts-20170718/ldap: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20170718/ldap.so (/usr/local/lib/php/extensions/no-debug-zts-20170718/ldap.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 'mysqlnd' (tried: /usr/local/lib/php/extensions/no-debug-zts-20170718/mysqlnd (/usr/local/lib/php/extensions/no-debug-zts-20170718/mysqlnd: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20170718/mysqlnd.so (/usr/local/lib/php/extensions/no-debug-zts-20170718/mysqlnd.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 'pspell' (tried: /usr/local/lib/php/extensions/no-debug-zts-20170718/pspell (/usr/local/lib/php/extensions/no-debug-zts-20170718/pspell: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20170718/pspell.so (/usr/local/lib/php/extensions/no-debug-zts-20170718/pspell.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 'snmp' (tried: /usr/local/lib/php/extensions/no-debug-zts-20170718/snmp (/usr/local/lib/php/extensions/no-debug-zts-20170718/snmp: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20170718/snmp.so (/usr/local/lib/php/extensions/no-debug-zts-20170718/snmp.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 'soap' (tried: /usr/local/lib/php/extensions/no-debug-zts-20170718/soap (/usr/local/lib/php/extensions/no-debug-zts-20170718/soap: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20170718/soap.so (/usr/local/lib/php/extensions/no-debug-zts-20170718/soap.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
009+ PHP Warning: PHP Startup: Unable to load dynamic library 'xmlrpc' (tried: /usr/local/lib/php/extensions/no-debug-zts-20170718/xmlrpc (/usr/local/lib/php/extensions/no-debug-zts-20170718/xmlrpc: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20170718/xmlrpc.so (/usr/local/lib/php/extensions/no-debug-zts-20170718/xmlrpc.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
010+
1 (7%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /opt/als-enable/php72/lib/php/extensions/no-debug-non-zts-20170718/curl (/opt/als-enable/php72/lib/php/extensions/no-debug-non-zts-20170718/curl: cannot open shared object file: No such file or directory), /opt/als-enable/php72/lib/php/extensions/no-debug-non-zts-20170718/curl.so (/opt/als-enable/php72/lib/php/extensions/no-debug-non-zts-20170718/curl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
002+
1 (7%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'bz2' (tried: /usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/bz2 (/usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/bz2: cannot open shared object file: No such file or directory), /usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/bz2.so (/usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/bz2.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 'curl' (tried: /usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/curl (/usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/curl: cannot open shared object file: No such file or directory), /usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/curl.so (/usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/curl.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 'gd2' (tried: /usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/gd2 (/usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/gd2: cannot open shared object file: No such file or directory), /usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/gd2.so (/usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/gd2.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 'intl' (tried: /usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/intl (/usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/intl: cannot open shared object file: No such file or directory), /usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/intl.so (/usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/intl.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 'mbstring' (tried: /usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/mbstring (/usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/mbstring: cannot open shared object file: No such file or directory), /usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/mbstring.so (/usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/mbstring.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 'mysqli' (tried: /usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/mysqli (/usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/mysqli: cannot open shared object file: No such file or directory), /usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/mysqli.so (/usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/mysqli.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 'pdo_mysql' (tried: /usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/pdo_mysql (/usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/pdo_mysql: cannot open shared object file: No such file or directory), /usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/pdo_mysql.so (/usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/pdo_mysql.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 'sockets' (tried: /usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/sockets (/usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/sockets: cannot open shared object file: No such file or directory), /usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/sockets.so (/usr/local/php-7.2.18/lib/php/extensions/no-debug-non-zts-20170718/sockets.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
009+
1 (7%)
001+ PHP Warning: PHP Startup: Invalid library (appears to be a Zend Extension, try loading using zend_extension=opcache.so from php.ini) in Unknown on line 0
002+
1 (7%)
001+ PHP Warning: Failed loading Zend extension 'opcache.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/opcache.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/opcache.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/opcache.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/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 'mongo.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/mongo.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/mongo.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/mongo.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/mongo.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 '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: cannot open shared object file: No such file or directory), /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
004+ PHP Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/redis.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/redis.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/redis.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/redis.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 'sockets.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/sockets.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/sockets.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/sockets.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/sockets.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
006+ 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
008+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/install/php-7.2.18/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
1 (7%)
001+ Failed loading /usr/local/php/lib/php/extensions/no-debug-zts-20170718/opcache.so: /usr/local/php/lib/php/extensions/no-debug-zts-20170718/opcache.so: undefined symbol: sapi_globals_id
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'igbinary.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/igbinary.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/igbinary.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/igbinary.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/igbinary.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-20170718/redis.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/redis.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/redis.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/redis.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 /php-7.2.18/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10