Test: /ext/openssl/tests/bug65729.phpt - Version 7.4.14        

Bug #65729 CN_match gives false positive
Submitted: 2013-09-21 08:27:27 Modified: 2013-10-08 14:02:09
From: datibbaw Assigned: mike
Status: Closed Package: OpenSSL related
PHP Version: master-Git-2013-09-21 (Git) OS: Linux

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

Count Diff
1 (11%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/upgrades/2021-01/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 002+ bool(false) 001- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.test.com.sg' in %s on line %d 003- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 004+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/upgrades/2021-01/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 005+ bool(false) 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 /root/upgrades/2021-01/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 007- resource(%d) of type (stream) 008- resource(%d) of type (stream) 010+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/upgrades/2021-01/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 010- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.bar.test.com' in %s on line %d 011- 012- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 013- 014- Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in %s on line %d
1 (11%)
001+ PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module 002+ Module compiled with module API=20131226 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 '/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/redis.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/redis.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/redis.so: undefined symbol: zval_used_for_init), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902//usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/redis.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902//usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 007+ PHP Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0 001- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.test.com.sg' in %s on line %d 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 007- resource(%d) of type (stream) 008- resource(%d) of type (stream) 009+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /opt/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 010+ bool(false) 010- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.bar.test.com' in %s on line %d 011- 012- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 013- 014- Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in %s on line %d 012+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /opt/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 014+ 015+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /opt/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 016+ bool(false) 018+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /opt/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 020+ PHP Notice: fwrite(): write of 1 bytes failed with errno=32 Broken pipe in /opt/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc on line 158
1 (11%)
001+ PHP Warning: PHP Startup: openssl: Unable to initialize module 002+ Module compiled with module API=20200930 003+ PHP compiled with module API=20190902 004+ These options need to match 005+ in Unknown on line 0 006+ PHP Warning: PHP Startup: grpc: Unable to initialize module 007+ Module compiled with module API=20200930 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=`*.test.com' did not match expected CN=`foo.test.com.sg' in %s on line %d 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 007- resource(%d) of type (stream) 008- resource(%d) of type (stream) 010- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.bar.test.com' in %s on line %d 011- 012- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 013- 014- Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in %s on line %d 012+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /compile/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 013+ bool(false) 015+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /compile/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 017+ 018+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /compile/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 019+ bool(false) 021+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /compile/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 023+ PHP Notice: fwrite(): write of 1 bytes failed with errno=32 Broken pipe in /compile/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc on line 158
1 (11%)
001+ PHP Warning: PHP Startup: geos: 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: apcu: 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 011+ PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) '/usr/lib64/libgd.so' in Unknown on line 0 001- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.test.com.sg' in %s on line %d 013+ Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.test.com.sg' in /root/install/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 014+
1 (11%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: /usr/local/lib/php/extensions/no-debug-zts-20190902/pdo_mysql (/usr/local/lib/php/extensions/no-debug-zts-20190902/pdo_mysql: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20190902/pdo_mysql.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/pdo_mysql.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 'pdo_sqlite' (tried: /usr/local/lib/php/extensions/no-debug-zts-20190902/pdo_sqlite (/usr/local/lib/php/extensions/no-debug-zts-20190902/pdo_sqlite: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20190902/pdo_sqlite.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/pdo_sqlite.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 003+
1 (11%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/local/lib/php/extensions/no-debug-zts-20190902/mcrypt.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/mcrypt.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20190902/mcrypt.so.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/mcrypt.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=`*.test.com' did not match expected CN=`foo.test.com.sg' in %s on line %d 003- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 004+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/src/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 005+ bool(false) 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 /root/src/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 007- resource(%d) of type (stream) 008- resource(%d) of type (stream) 009+ 010+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/src/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 011+ bool(false) 010- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.bar.test.com' in %s on line %d 011- 012- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 013- 014- 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 /root/src/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 015+ PHP Notice: fwrite(): write of 1 bytes failed with errno=32 Broken pipe in /root/src/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc on line 158
1 (11%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'curl.so' (tried: /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), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/curl.so.so (/usr/local/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/lib/php/extensions/no-debug-non-zts-20190902/fileinfo.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/fileinfo.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/fileinfo.so.so (/usr/local/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/lib/php/extensions/no-debug-non-zts-20190902/gd.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/gd.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/gd.so.so (/usr/local/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/lib/php/extensions/no-debug-non-zts-20190902/json.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/json.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/json.so.so (/usr/local/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 'pdo.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/pdo.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/pdo.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/pdo.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/pdo.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 'pdo_sqlite.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/pdo_sqlite.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/pdo_sqlite.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/pdo_sqlite.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/pdo_sqlite.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 'phar.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/phar.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/phar.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/phar.so.so (/usr/local/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 008+ PHP Warning: PHP Startup: Unable to load dynamic library 'sqlite3.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/sqlite3.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/sqlite3.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/sqlite3.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/sqlite3.so.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 'zip.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/zip.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/zip.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/zip.so.so (/usr/local/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 010+
1 (11%)
001+ PHP Warning: Module 'imagick' already loaded in Unknown on line 0 002+ PHP Warning: Module 'zip' already loaded in Unknown on line 0 003+
1 (11%)
001+ PHP Warning: Failed loading Zend extension 'opcache.so' (tried: /usr/local/lib/php/extensions/no-debug-zts-20160303/opcache.so (/usr/local/lib/php/extensions/no-debug-zts-20160303/opcache.so: undefined symbol: _zval_ptr_dtor), /usr/local/lib/php/extensions/no-debug-zts-20160303/opcache.so.so (/usr/local/lib/php/extensions/no-debug-zts-20160303/opcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 002+ PHP Warning: PHP Startup: oci8: Unable to initialize module 003+ Module compiled with module API=20160303 004+ PHP compiled with module API=20190902 005+ These options need to match 006+ in Unknown on line 0 007+ PHP Warning: PHP Startup: memcached: Unable to initialize module 008+ Module compiled with module API=20160303 009+ PHP compiled with module API=20190902 010+ These options need to match 011+ in Unknown on line 0 012+ PHP Warning: PHP Startup: Unable to load dynamic library 'raphf.so' (tried: /usr/local/lib/php/extensions/no-debug-zts-20160303/raphf.so (/usr/local/lib/php/extensions/no-debug-zts-20160303/raphf.so: undefined symbol: _zval_ptr_dtor), /usr/local/lib/php/extensions/no-debug-zts-20160303/raphf.so.so (/usr/local/lib/php/extensions/no-debug-zts-20160303/raphf.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 013+ PHP Warning: PHP Startup: propro: Unable to initialize module 014+ Module compiled with module API=20160303 015+ PHP compiled with module API=20190902 016+ These options need to match 017+ in Unknown on line 0 018+ PHP Warning: PHP Startup: Unable to load dynamic library 'http.so' (tried: /usr/local/lib/php/extensions/no-debug-zts-20160303/http.so (/usr/local/lib/php/extensions/no-debug-zts-20160303/http.so: undefined symbol: _zval_ptr_dtor), /usr/local/lib/php/extensions/no-debug-zts-20160303/http.so.so (/usr/local/lib/php/extensions/no-debug-zts-20160303/http.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=`*.test.com' did not match expected CN=`foo.test.com.sg' 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) 007- resource(%d) of type (stream) 008- resource(%d) of type (stream) 020+ Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.test.com.sg' in /usr/local/src/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 021+ 022+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/src/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 023+ 024+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/local/src/php-7.4.14/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 025+ bool(false) 026+ resource(21) of type (stream) 027+ resource(23) of type (stream) 028+