Test: /ext/openssl/tests/bug65729.phpt - Version 8.0.0beta1        

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

Count Diff
1 (25%)
001+ Warning: openssl_x509_export_to_file(): X.509 Certificate cannot be retrieved in /usr/local/src/php-8.0.0beta1/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 /usr/local/src/php-8.0.0beta1/ext/openssl/tests/CertificateGenerator.inc on line 128 004+ 005+ Warning: openssl_csr_new(): Unable to generate a private key in /usr/local/src/php-8.0.0beta1/ext/openssl/tests/CertificateGenerator.inc on line 128 006+ 007+ Warning: openssl_csr_sign(): X.509 Certificate Signing Request cannot be retrieved in /usr/local/src/php-8.0.0beta1/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 /usr/local/src/php-8.0.0beta1/ext/openssl/tests/CertificateGenerator.inc:135 010+ Stack trace: 011+ #0 %s/bug65729.php(44): CertificateGenerator->saveNewCertAsFileWithKey('*.test.com', '/usr/local/src/...') 012+ #1 {main} 013+ thrown in /usr/local/src/php-8.0.0beta1/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 (25%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'parallel' (tried: /opt/zts/lib/php/extensions/debug-non-zts-20200804/parallel (/opt/zts/lib/php/extensions/debug-non-zts-20200804/parallel: cannot open shared object file: No such file or directory), /opt/zts/lib/php/extensions/debug-non-zts-20200804/parallel.so (/opt/zts/lib/php/extensions/debug-non-zts-20200804/parallel.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/piers/projects/php-src/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/piers/projects/php-src/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/piers/projects/php-src/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/piers/projects/php-src/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/piers/projects/php-src/ext/openssl/tests/ServerClientTestCase.inc on line 158
1 (25%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/nginx/php/lib/php/extensions/no-debug-non-zts-20200804/imagick.so (/usr/local/nginx/php/lib/php/extensions/no-debug-non-zts-20200804/imagick.so: cannot open shared object file: No such file or directory), /usr/local/nginx/php/lib/php/extensions/no-debug-non-zts-20200804/imagick.so.so (/usr/local/nginx/php/lib/php/extensions/no-debug-non-zts-20200804/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 002+
1 (25%)
001+ PHP Warning: Failed loading Zend extension 'opcache.so' (tried: /usr/lib64/extensions/no-debug-non-zts-20200804/opcache.so (/usr/lib64/extensions/no-debug-non-zts-20200804/opcache.so: cannot open shared object file: No such file or directory), /usr/lib64/extensions/no-debug-non-zts-20200804/opcache.so.so (/usr/lib64/extensions/no-debug-non-zts-20200804/opcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 002+