Test: /ext/openssl/tests/bug68265.phpt - Version 7.4.6        

Bug #68265 TLS/SSL connections do not honour the SubjectAltName within certificates
Submitted: 2014-10-19 12:57:33 Modified: 2015-03-05 07:07:11
From: ondrej Assigned: rdlowrey
Status: Closed Package: OpenSSL related
PHP Version: 5.6.2 OS: Linux

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

Count Diff
11 (16%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /usr/local/src/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 001- resource(%d) of type (stream) 002+ 003+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/src/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 004+ 005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/local/src/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 006+ bool(false)
5 (7%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /usr/local/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 001- resource(%d) of type (stream) 002+ 003+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 004+ 005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/local/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 006+ bool(false)
5 (7%)
001+ Warning: stream_socket_client(): SSL: Success in /root/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 001- resource(%d) of type (stream) 002+ 003+ Warning: stream_socket_client(): Failed to enable crypto in /root/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 004+ 005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /root/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 006+ bool(false)
3 (4%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: /usr/lib/php/extensions/no-debug-zts-20190902/mysqli (/usr/lib/php/extensions/no-debug-zts-20190902/mysqli: cannot open shared object file: No such file or directory), /usr/lib/php/extensions/no-debug-zts-20190902/mysqli.so (/usr/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+ PHP Warning: PHP Startup: Unable to load dynamic library 'msql.so' (tried: /usr/lib/php/extensions/no-debug-zts-20190902/msql.so (/usr/lib/php/extensions/no-debug-zts-20190902/msql.so: cannot open shared object file: No such file or directory), /usr/lib/php/extensions/no-debug-zts-20190902/msql.so.so (/usr/lib/php/extensions/no-debug-zts-20190902/msql.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 'ImageMagick' (tried: /usr/lib/php/extensions/no-debug-zts-20190902/ImageMagick (/usr/lib/php/extensions/no-debug-zts-20190902/ImageMagick: cannot open shared object file: No such file or directory), /usr/lib/php/extensions/no-debug-zts-20190902/ImageMagick.so (/usr/lib/php/extensions/no-debug-zts-20190902/ImageMagick.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
2 (3%)
001+ Warning: stream_socket_client(): SSL: Success in /home/work/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 001- resource(%d) of type (stream) 002+ 003+ Warning: stream_socket_client(): Failed to enable crypto in /home/work/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 004+ 005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/work/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 006+ bool(false)
1 (1%)
001+ PHP Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0 001- resource(%d) of type (stream) 002+ 003+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/local/src/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 004+ bool(false) 005+ PHP Notice: fwrite(): write of 1 bytes failed with errno=32 Broken pipe in /usr/local/src/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc on line 158
1 (1%)
001+ PHP Warning: Cannot load module 'pdo_pgsql' because required module 'pdo' is not loaded in Unknown on line 0
1 (1%)
001+ PHP Warning: Failed loading Zend extension 'opcache' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/opcache (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/opcache: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/opcache.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/opcache.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 001- resource(%d) of type (stream) 002+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/home/administrator/Downloads/php-7.4.6/ext/openssl/tests/bug68265.pem'; Check that your cafile/capath settings include details of your certificate and its issuer in /home/administrator/Downloads/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 003+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /home/administrator/Downloads/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 004+ PHP Warning: stream_socket_accept(): accept failed: Success in /home/administrator/Downloads/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 005+ 006+ Warning: stream_socket_client(): SSL: Connection reset by peer in /home/administrator/Downloads/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 007+ 008+ Warning: stream_socket_client(): Failed to enable crypto in /home/administrator/Downloads/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 009+ 010+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/administrator/Downloads/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 011+ bool(false)
1 (1%)
001+ PHP Warning: Failed loading Zend extension 'xdebug.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/xdebug.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 'memcached.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/memcached.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/memcached.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/memcached.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/memcached.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 'gearman.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/gearman.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/gearman.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/gearman.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/gearman.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 'solr.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/solr.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/solr.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/solr.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/solr.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 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (1%)
001+ PHP Warning: Module 'sodium' already loaded in Unknown on line 0 002+ PHP Warning: Version warning: Imagick was compiled against ImageMagick version 1801 but version 1802 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
1 (1%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'curl.so' (tried: /usr/local/php/lib/php/extensions/no-debug-zts-20190902/curl.so (/usr/local/php/lib/php/extensions/no-debug-zts-20190902/curl.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-zts-20190902/curl.so.so (/usr/local/php/lib/php/extensions/no-debug-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-zts-20190902/fileinfo.so (/usr/local/php/lib/php/extensions/no-debug-zts-20190902/fileinfo.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-zts-20190902/fileinfo.so.so (/usr/local/php/lib/php/extensions/no-debug-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 'zip.so' (tried: /usr/local/php/lib/php/extensions/no-debug-zts-20190902/zip.so (/usr/local/php/lib/php/extensions/no-debug-zts-20190902/zip.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-zts-20190902/zip.so.so (/usr/local/php/lib/php/extensions/no-debug-zts-20190902/zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (1%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'gd2' (tried: /usr/lib/php/extensions/no-debug-zts-20190902/gd2 (/usr/lib/php/extensions/no-debug-zts-20190902/gd2: cannot open shared object file: No such file or directory), /usr/lib/php/extensions/no-debug-zts-20190902/gd2.so (/usr/lib/php/extensions/no-debug-zts-20190902/gd2.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (1%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/imagick.so (/usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so (/usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 001- resource(%d) of type (stream) 002+ 003+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/m-ito/tmp/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 004+ bool(false) 005+ PHP Notice: fwrite(): write of 1 bytes failed with errno=32 Broken pipe in /home/m-ito/tmp/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc on line 158
1 (1%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: /usr/lib/php/extensions/no-debug-zts-20190902/mysqli (/usr/lib/php/extensions/no-debug-zts-20190902/mysqli: cannot open shared object file: No such file or directory), /usr/lib/php/extensions/no-debug-zts-20190902/mysqli.so (/usr/lib/php/extensions/no-debug-zts-20190902/mysqli.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (1%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'openssl' (tried: /opt/php/lib/php/extensions/no-debug-non-zts-20190902/openssl (/opt/php/lib/php/extensions/no-debug-non-zts-20190902/openssl: cannot open shared object file: No such file or directory), /opt/php/lib/php/extensions/no-debug-non-zts-20190902/openssl.so (/opt/php/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- resource(%d) of type (stream) 002+ PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: /opt/php/lib/php/extensions/no-debug-non-zts-20190902/pdo_mysql (/opt/php/lib/php/extensions/no-debug-non-zts-20190902/pdo_mysql: cannot open shared object file: No such file or directory), /opt/php/lib/php/extensions/no-debug-non-zts-20190902/pdo_mysql.so (/opt/php/lib/php/extensions/no-debug-non-zts-20190902/pdo_mysql.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 'yaf' (tried: /opt/php/lib/php/extensions/no-debug-non-zts-20190902/yaf (/opt/php/lib/php/extensions/no-debug-non-zts-20190902/yaf: cannot open shared object file: No such file or directory), /opt/php/lib/php/extensions/no-debug-non-zts-20190902/yaf.so (/opt/php/lib/php/extensions/no-debug-non-zts-20190902/yaf.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 004+ PHP Warning: stream_socket_server(): unable to connect to ssl://127.0.0.1:64321 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /opt/php/src/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 8 005+ PHP Warning: stream_socket_accept() expects parameter 1 to be resource, bool given in /opt/php/src/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 006+ 007+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /opt/php/src/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 008+ bool(false)
1 (1%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_kdb.so' (tried: /opt/obss/server/php/lib/php/extensions/no-debug-zts-20190902/pdo_kdb.so (/opt/obss/server/php/lib/php/extensions/no-debug-zts-20190902/pdo_kdb.so: cannot open shared object file: No such file or directory), /opt/obss/server/php/lib/php/extensions/no-debug-zts-20190902/pdo_kdb.so.so (/opt/obss/server/php/lib/php/extensions/no-debug-zts-20190902/pdo_kdb.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 001- resource(%d) of type (stream) 002+ PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_kdb.so' (tried: /opt/obss/server/php/lib/php/extensions/no-debug-zts-20190902/pdo_kdb.so (/opt/obss/server/php/lib/php/extensions/no-debug-zts-20190902/pdo_kdb.so: cannot open shared object file: No such file or directory), /opt/obss/server/php/lib/php/extensions/no-debug-zts-20190902/pdo_kdb.so.so (/opt/obss/server/php/lib/php/extensions/no-debug-zts-20190902/pdo_kdb.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 003+ PHP Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0 004+ 005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/gmssl/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 11 006+ bool(false) 007+ PHP Notice: fwrite(): write of 1 bytes failed with errno=32 Broken pipe in /root/gmssl/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc on line 107
1 (1%)
001+ PHP Warning: Version warning: Imagick was compiled against ImageMagick version 1801 but version 1802 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
1 (1%)
001+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/root/php-7.4.6/ext/openssl/tests/bug68265.pem'; Check that your cafile/capath settings include details of your certificate and its issuer in /root/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 001- resource(%d) of type (stream) 002+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /root/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 003+ 004+ Warning: stream_socket_client(): SSL: Connection reset by peer in /root/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 005+ 006+ Warning: stream_socket_client(): Failed to enable crypto in /root/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 007+ 008+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /root/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 009+ bool(false) 010+ PHP Warning: stream_socket_accept(): accept failed: Success in /root/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11
1 (1%)
001+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/root/php-7.4.6/ext/openssl/tests/bug68265.pem'; Check that your cafile/capath settings include details of your certificate and its issuer in /root/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 001- resource(%d) of type (stream) 002+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /root/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 003+ PHP Warning: stream_socket_accept(): accept failed: Success in /root/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 004+ 005+ Warning: stream_socket_client(): SSL: Success in /root/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 006+ 007+ Warning: stream_socket_client(): Failed to enable crypto in /root/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 008+ 009+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /root/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 010+ bool(false)
1 (1%)
001+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/usr/local/php-7.4.6/ext/openssl/tests/bug68265.pem'; Check that your cafile/capath settings include details of your certificate and its issuer in /usr/local/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 001- resource(%d) of type (stream) 002+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /usr/local/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 003+ PHP Warning: stream_socket_accept(): accept failed: Success in /usr/local/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 004+ 005+ Warning: stream_socket_client(): SSL: Connection reset by peer in /usr/local/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 006+ 007+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 008+ 009+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/local/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 010+ bool(false)
1 (1%)
001+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/usr/local/src/php-7.4.6/ext/openssl/tests/bug68265.pem'; Check that your cafile/capath settings include details of your certificate and its issuer in /usr/local/src/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 001- resource(%d) of type (stream) 002+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /usr/local/src/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 003+ PHP Warning: stream_socket_accept(): accept failed: Success in /usr/local/src/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 004+ 005+ Warning: stream_socket_client(): SSL: Connection reset by peer in /usr/local/src/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 006+ 007+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/src/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 008+ 009+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/local/src/php-7.4.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 010+ bool(false)