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

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+ Zend OPcache requires Zend Engine API version 320180731. 002+ The Zend Engine API version 320190902 which is installed, is newer. 003+ Contact Zend Technologies at http://www.zend.com/ for a later version of Zend OPcache. 004+ 005+
1 (11%)
001+ Zend OPcache requires Zend Engine API version 320180731. 002+ The Zend Engine API version 320190902 which is installed, is newer. 003+ Contact Zend Technologies at http://www.zend.com/ for a later version of Zend OPcache. 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+ PHP Warning: PHP Startup: imagick: Unable to initialize module 006+ Module compiled with module API=20180731 007+ PHP compiled with module API=20190902 008+ These options need to match 009+ in Unknown on line 0 010+ PHP Warning: PHP Startup: mcrypt: Unable to initialize module 011+ Module compiled with module API=20180731 012+ PHP compiled with module API=20190902 013+ These options need to match 014+ in Unknown on line 0 016+ 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.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 017+ 018+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/src/php-7.4.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 019+
1 (11%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/friverag/Downloads/php-7.4.15/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 /home/friverag/Downloads/php-7.4.15/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 /home/friverag/Downloads/php-7.4.15/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 /home/friverag/Downloads/php-7.4.15/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+ Warning: stream_socket_client(): SSL: Success in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
001- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.test.com.sg' in %s on line %d
007+
008+ Warning: stream_socket_client(): SSL: Success in /home/sama/php-7.4.1/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(): Failed to enable crypto in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
011+
012+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
013+ bool(false)
014+
015+ Warning: stream_socket_client(): SSL: Success in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
016+
017+ Warning: stream_socket_client(): Failed to enable crypto in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
018+
019+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
020+ bool(false)
021+
022+ Warning: stream_socket_client(): SSL: Success in /home/sama/php-7.4.1/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
1 (11%)
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.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 001- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.test.com.sg' in %s on line %d 007- resource(%d) of type (stream) 008- resource(%d) of type (stream) 009+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: 010+ error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/src/php-7.4.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 011+ 012+ Warning: stream_socket_client(): Failed to enable crypto in /usr/src/php-7.4.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 013+ 014+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/src/php-7.4.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 015+ bool(false) 016+ 017+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: 018+ error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/src/php-7.4.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 019+ 020+ Warning: stream_socket_client(): Failed to enable crypto in /usr/src/php-7.4.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 021+ 022+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/src/php-7.4.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 023+ bool(false) 024+ 025+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: 026+ error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/src/php-7.4.15/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
1 (11%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/php7/lib/php/extensions/no-debug-zts-20190902/intl (/usr/local/php7/lib/php/extensions/no-debug-zts-20190902/intl: cannot open shared object file: No such file or directory), /usr/local/php7/lib/php/extensions/no-debug-zts-20190902/intl.so (/usr/local/php7/lib/php/extensions/no-debug-zts-20190902/intl.so: undefined symbol: _zval_ptr_dtor)) in Unknown on line 0 002+
1 (11%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /usr/lib/php/extensions/debug-zts-20190902/curl (/usr/lib/php/extensions/debug-zts-20190902/curl: cannot open shared object file: No such file or directory), /usr/lib/php/extensions/debug-zts-20190902/curl.so (/usr/lib/php/extensions/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 'fileinfo' (tried: /usr/lib/php/extensions/debug-zts-20190902/fileinfo (/usr/lib/php/extensions/debug-zts-20190902/fileinfo: cannot open shared object file: No such file or directory), /usr/lib/php/extensions/debug-zts-20190902/fileinfo.so (/usr/lib/php/extensions/debug-zts-20190902/fileinfo.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 'intl' (tried: /usr/lib/php/extensions/debug-zts-20190902/intl (/usr/lib/php/extensions/debug-zts-20190902/intl: cannot open shared object file: No such file or directory), /usr/lib/php/extensions/debug-zts-20190902/intl.so (/usr/lib/php/extensions/debug-zts-20190902/intl.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 'mbstring' (tried: /usr/lib/php/extensions/debug-zts-20190902/mbstring (/usr/lib/php/extensions/debug-zts-20190902/mbstring: cannot open shared object file: No such file or directory), /usr/lib/php/extensions/debug-zts-20190902/mbstring.so (/usr/lib/php/extensions/debug-zts-20190902/mbstring.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 'openssl' (tried: /usr/lib/php/extensions/debug-zts-20190902/openssl (/usr/lib/php/extensions/debug-zts-20190902/openssl: cannot open shared object file: No such file or directory), /usr/lib/php/extensions/debug-zts-20190902/openssl.so (/usr/lib/php/extensions/debug-zts-20190902/openssl.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_mysql' (tried: /usr/lib/php/extensions/debug-zts-20190902/pdo_mysql (/usr/lib/php/extensions/debug-zts-20190902/pdo_mysql: cannot open shared object file: No such file or directory), /usr/lib/php/extensions/debug-zts-20190902/pdo_mysql.so (/usr/lib/php/extensions/debug-zts-20190902/pdo_mysql.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 007+
1 (11%)
001+ PHP Warning: Failed loading Zend extension 'opcache.so' (tried: /usr/local/php/lib/extensions/no-debug-non-zts-20160303/opcache.so (/usr/local/php/lib/extensions/no-debug-non-zts-20160303/opcache.so: undefined symbol: _zval_ptr_dtor), /usr/local/php/lib/extensions/no-debug-non-zts-20160303/opcache.so.so (/usr/local/php/lib/extensions/no-debug-non-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: redis: 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: Unable to load dynamic library 'imagick.so' (tried: /usr/local/php/lib/extensions/no-debug-non-zts-20160303/imagick.so (/usr/local/php/lib/extensions/no-debug-non-zts-20160303/imagick.so: undefined symbol: _zval_ptr_dtor), /usr/local/php/lib/extensions/no-debug-non-zts-20160303/imagick.so.so (/usr/local/php/lib/extensions/no-debug-non-zts-20160303/imagick.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.so' (tried: /usr/local/php/lib/extensions/no-debug-non-zts-20160303/swoole.so (/usr/local/php/lib/extensions/no-debug-non-zts-20160303/swoole.so: undefined symbol: _zval_ptr_dtor), /usr/local/php/lib/extensions/no-debug-non-zts-20160303/swoole.so.so (/usr/local/php/lib/extensions/no-debug-non-zts-20160303/swoole.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 009+ PHP Warning: PHP Startup: ldap: Unable to initialize module 010+ Module compiled with module API=20160303 011+ PHP compiled with module API=20190902 012+ These options need to match 013+ in Unknown on line 0 014+ PHP Warning: PHP Startup: ssdb: Unable to initialize module 015+ Module compiled with module API=20160303 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) 009- 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 015- bool(false) 016+ PHP compiled with module API=20190902 017+ These options need to match 018+ in Unknown on line 0 019+ PHP Warning: PHP Startup: exif: Unable to initialize module 020+ Module compiled with module API=20160303 021+ PHP compiled with module API=20190902 022+ These options need to match 023+ in Unknown on line 0 024+ PHP Warning: PHP Startup: Unable to load dynamic library 'intl.so' (tried: /usr/local/php/lib/extensions/no-debug-non-zts-20160303/intl.so (/usr/local/php/lib/extensions/no-debug-non-zts-20160303/intl.so: undefined symbol: _zval_ptr_dtor), /usr/local/php/lib/extensions/no-debug-non-zts-20160303/intl.so.so (/usr/local/php/lib/extensions/no-debug-non-zts-20160303/intl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 025+ 026+ Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.test.com.sg' in /soft/php-7.4.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 027+ 028+ Warning: stream_socket_client(): Failed to enable crypto in /soft/php-7.4.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 029+ 030+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /soft/php-7.4.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 031+ bool(false) 032+ resource(21) of type (stream) 033+ resource(23) of type (stream) 034+ 035+ Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.bar.test.com' in /soft/php-7.4.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 036+ 037+ Warning: stream_socket_client(): Failed to enable crypto in /soft/php-7.4.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 038+ 039+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /soft/php-7.4.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 040+ bool(false)
1 (11%)
001+ PHP Warning: Failed loading Zend extension 'opcache.so' (tried: /usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/opcache.so (/usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/opcache.so: cannot open shared object file: No such file or directory), /usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/opcache.so.so (/usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/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 'igbinary.so' (tried: /usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/igbinary.so (/usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/igbinary.so: cannot open shared object file: No such file or directory), /usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/igbinary.so.so (/usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/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 'mongodb.so' (tried: /usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/mongodb.so (/usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/mongodb.so: cannot open shared object file: No such file or directory), /usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/mongodb.so.so (/usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/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 'apcu.so' (tried: /usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/apcu.so (/usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/apcu.so: cannot open shared object file: No such file or directory), /usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/apcu.so.so (/usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/apcu.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 'redis.so' (tried: /usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/redis.so (/usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/redis.so: cannot open shared object file: No such file or directory), /usr/local/php-7.4.15/lib/php/extensions/no-debug-non-zts-20190902/redis.so.so (/usr/local/php-7.4.15/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 006+