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

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

Count Diff
2 (14%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /wwws/php/php7.4.29/lib/php/extensions/no-debug-zts-20190902/mcrypt.so (/wwws/php/php7.4.29/lib/php/extensions/no-debug-zts-20190902/mcrypt.so: cannot open shared object file: No such file or directory), /wwws/php/php7.4.29/lib/php/extensions/no-debug-zts-20190902/mcrypt.so.so (/wwws/php/php7.4.29/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+
2 (14%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /apache/lib/php/extensions/no-debug-zts-20190902/curl (/apache/lib/php/extensions/no-debug-zts-20190902/curl: cannot open shared object file: No such file or directory), /apache/lib/php/extensions/no-debug-zts-20190902/curl.so (/apache/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 'mbstring' (tried: /apache/lib/php/extensions/no-debug-zts-20190902/mbstring (/apache/lib/php/extensions/no-debug-zts-20190902/mbstring: cannot open shared object file: No such file or directory), /apache/lib/php/extensions/no-debug-zts-20190902/mbstring.so (/apache/lib/php/extensions/no-debug-zts-20190902/mbstring.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 'exif' (tried: /apache/lib/php/extensions/no-debug-zts-20190902/exif (/apache/lib/php/extensions/no-debug-zts-20190902/exif: cannot open shared object file: No such file or directory), /apache/lib/php/extensions/no-debug-zts-20190902/exif.so (/apache/lib/php/extensions/no-debug-zts-20190902/exif.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 'mysqli' (tried: /apache/lib/php/extensions/no-debug-zts-20190902/mysqli (/apache/lib/php/extensions/no-debug-zts-20190902/mysqli: cannot open shared object file: No such file or directory), /apache/lib/php/extensions/no-debug-zts-20190902/mysqli.so (/apache/lib/php/extensions/no-debug-zts-20190902/mysqli.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_mysql' (tried: /apache/lib/php/extensions/no-debug-zts-20190902/pdo_mysql (/apache/lib/php/extensions/no-debug-zts-20190902/pdo_mysql: cannot open shared object file: No such file or directory), /apache/lib/php/extensions/no-debug-zts-20190902/pdo_mysql.so (/apache/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 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+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /apache/src/php-7.4.29/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 008+ bool(false) 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 /apache/src/php-7.4.29/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 012+ 013+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /apache/src/php-7.4.29/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 014+ bool(false) 016+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /apache/src/php-7.4.29/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 018+ PHP Notice: fwrite(): write of 1 bytes failed with errno=32 Broken pipe in /apache/src/php-7.4.29/ext/openssl/tests/ServerClientTestCase.inc on line 158
1 (7%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/rpmbuild/BUILD/php-7.4.29/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/rpmbuild/BUILD/php-7.4.29/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/rpmbuild/BUILD/php-7.4.29/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/rpmbuild/BUILD/php-7.4.29/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 (7%)
001+ Warning: openssl_x509_export_to_file(): cannot get cert from parameter 1 in /root/php-7.4.29bak/ext/openssl/tests/CertificateGenerator.inc on line 82 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: openssl_csr_new(): private key length is too short; it needs to be at least 384 bits, not 0 in /root/php-7.4.29bak/ext/openssl/tests/CertificateGenerator.inc on line 128 004+ 005+ Warning: openssl_csr_new(): Unable to generate a private key in /root/php-7.4.29bak/ext/openssl/tests/CertificateGenerator.inc on line 128 006+ 007+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /root/php-7.4.29bak/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) 007- resource(%d) of type (stream) 008- resource(%d) of type (stream) 009- 009+ Fatal error: Uncaught Exception: Failed to create certificate in /root/php-7.4.29bak/ext/openssl/tests/CertificateGenerator.inc:135 010+ Stack trace: 011+ #0 %s/bug65729.php(44): CertificateGenerator->saveNewCertAsFileWithKey('*.test.com', '/root/php-7.4.2...') 012+ #1 {main} 013+ thrown in /root/php-7.4.29bak/ext/openssl/tests/CertificateGenerator.inc on line 135 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)
1 (7%)
001+ Warning: openssl_x509_export_to_file(): cannot get cert from parameter 1 in /home/moo/source/php-7.4.29/ext/openssl/tests/CertificateGenerator.inc on line 82 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: openssl_csr_new(): private key length is too short; it needs to be at least 384 bits, not 0 in /home/moo/source/php-7.4.29/ext/openssl/tests/CertificateGenerator.inc on line 128 004+ 005+ Warning: openssl_csr_new(): Unable to generate a private key in /home/moo/source/php-7.4.29/ext/openssl/tests/CertificateGenerator.inc on line 128 006+ 007+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /home/moo/source/php-7.4.29/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) 007- resource(%d) of type (stream) 008- resource(%d) of type (stream) 009- 009+ Fatal error: Uncaught Exception: Failed to create certificate in /home/moo/source/php-7.4.29/ext/openssl/tests/CertificateGenerator.inc:135 010+ Stack trace: 011+ #0 %s/bug65729.php(44): CertificateGenerator->saveNewCertAsFileWithKey('*.test.com', '/home/moo/sourc...') 012+ #1 {main} 013+ thrown in /home/moo/source/php-7.4.29/ext/openssl/tests/CertificateGenerator.inc on line 135 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)
1 (7%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'openssl' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/openssl (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/openssl: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/openssl.so (/usr/local/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=`*.test.com' did not match expected CN=`foo.test.com.sg' in %s on line %d 003+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/codespace/php-7.4.29/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 004+ bool(false) 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+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/codespace/php-7.4.29/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 007- resource(%d) of type (stream) 008- resource(%d) of type (stream) 008+ 009+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/codespace/php-7.4.29/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 /home/codespace/php-7.4.29/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 014+ PHP Notice: fwrite(): write of 1 bytes failed with errno=32 Broken pipe in /home/codespace/php-7.4.29/ext/openssl/tests/ServerClientTestCase.inc on line 158
1 (7%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'ldap' (tried: /usr/local/lib/php/extensions/no-debug-zts-20190902/ldap (/usr/local/lib/php/extensions/no-debug-zts-20190902/ldap: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20190902/ldap.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/ldap.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 002+
1 (7%)
001+ PHP Warning: PHP Startup: Invalid library (appears to be a Zend Extension, try loading using zend_extension=/usr/local/php7/lib/php/extensions/no-debug-non-zts-20190902/opcache.so from php.ini) in Unknown on line 0 002+
1 (7%)
001+ PHP Warning: PHP Startup: Invalid library (appears to be a Zend Extension, try loading using zend_extension=/usr/local/lib/php/20190902/opcache.so from php.ini) in Unknown on line 0 002+
1 (7%)
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 (7%)
001+ PHP Notice: Undefined variable: errno in /usr/local/src/php-7.4.29/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7 002+ PHP Notice: Undefined variable: errstr in /usr/local/src/php-7.4.29/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7 003+ PHP Warning: stream_socket_server() has been disabled for security reasons in /usr/local/src/php-7.4.29/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7 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 (Connection refused) in /usr/local/src/php-7.4.29/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 006+ 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- resource(%d) of type (stream) 008- resource(%d) of type (stream) 008+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/local/src/php-7.4.29/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 010+ 011+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/local/src/php-7.4.29/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 012+ 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 014+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/local/src/php-7.4.29/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
1 (7%)
001+ Derived class Locr\OGR\Geometry is initialized before base class IGeometry: interface is ignored 002+