Test: /ext/openssl/tests/bug68920.phpt - Version 7.4.26        

Bug #68920 php_x509_fingerprint_match need stricter checks
Submitted: 2015-01-27 12:51:33 Modified: 2015-03-04 19:54:15
From: erik Assigned: rdlowrey
Status: Closed Package: OpenSSL related
PHP Version: 5.6.5 OS:

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

Count Diff
4 (20%)
001+ PHP Warning: Module 'intl' already loaded in Unknown on line 0 002+ PHP Warning: Module 'xsl' already loaded in Unknown on line 0 003+
2 (10%)
001+ Warning: openssl_csr_new(): Error signing request in /usr/src/php-7.4.26/ext/openssl/tests/CertificateGenerator.inc on line 62 001- Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array in %s on line %d 003+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /usr/src/php-7.4.26/ext/openssl/tests/CertificateGenerator.inc on line 68 003- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 005+ Warning: openssl_csr_sign(): cannot get cert from parameter 2 in /usr/src/php-7.4.26/ext/openssl/tests/CertificateGenerator.inc on line 132 005- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 006- bool(false) 007+ Fatal error: Uncaught Exception: Failed to create certificate in /usr/src/php-7.4.26/ext/openssl/tests/CertificateGenerator.inc:135 008+ Stack trace: 009+ #0 %s/bug68920.php(46): CertificateGenerator->saveNewCertAsFileWithKey('bug68920', '/usr/src/php-7....') 010+ #1 {main} 011+ thrown in /usr/src/php-7.4.26/ext/openssl/tests/CertificateGenerator.inc on line 135 008- Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array in %s on line %d 009- 010- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 011- 012- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 013- bool(false) 014- 015- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d 016- 017- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d 018- 019- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 020- 021- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 022- bool(false) 023- 024- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d 025- 026- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d 027- 028- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 029- 030- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 031- bool(false)
2 (10%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'gmp' (tried: /wwwroot/php/lib/php/extensions/no-debug-zts-20190902/gmp (/wwwroot/php/lib/php/extensions/no-debug-zts-20190902/gmp: cannot open shared object file: No such file or directory), /wwwroot/php/lib/php/extensions/no-debug-zts-20190902/gmp.so (/wwwroot/php/lib/php/extensions/no-debug-zts-20190902/gmp.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 'intl' (tried: /wwwroot/php/lib/php/extensions/no-debug-zts-20190902/intl (/wwwroot/php/lib/php/extensions/no-debug-zts-20190902/intl: cannot open shared object file: No such file or directory), /wwwroot/php/lib/php/extensions/no-debug-zts-20190902/intl.so (/wwwroot/php/lib/php/extensions/no-debug-zts-20190902/intl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 003+
2 (10%)
001+ PHP Warning: Module 'intl' already loaded in Unknown on line 0 002+
1 (5%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/src/php-7.4.26/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7 002+ bool(false) 001- Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array 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 /usr/src/php-7.4.26/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 005+ bool(false) 005- Warning: stream_socket_client(): unable to connect to %s (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 /usr/src/php-7.4.26/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15 008- Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array in %s on line %d 009- 010- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 011- 012- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 010+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/src/php-7.4.26/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 19 014- 015- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d 016- 017- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d 018- 019- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 020- 021- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 022- bool(false) 023- 024- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d 025- 026- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d 027- 028- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 029- 030- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 031- bool(false)
1 (5%)
001+ Warning: openssl_csr_new(): private key length is too short; it needs to be at least 384 bits, not 0 in /usr/local/php-7.4.26/ext/openssl/tests/CertificateGenerator.inc on line 128 001- Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array in %s on line %d 003+ Warning: openssl_csr_new(): Unable to generate a private key in /usr/local/php-7.4.26/ext/openssl/tests/CertificateGenerator.inc on line 128 003- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 005+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /usr/local/php-7.4.26/ext/openssl/tests/CertificateGenerator.inc on line 132 005- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 006- bool(false) 007+ Fatal error: Uncaught Exception: Failed to create certificate in /usr/local/php-7.4.26/ext/openssl/tests/CertificateGenerator.inc:135 008+ Stack trace: 009+ #0 %s/bug68920.php(46): CertificateGenerator->saveNewCertAsFileWithKey('bug68920', '/usr/local/php-...') 010+ #1 {main} 011+ thrown in /usr/local/php-7.4.26/ext/openssl/tests/CertificateGenerator.inc on line 135 008- Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array in %s on line %d 009- 010- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 011- 012- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 013- bool(false) 014- 015- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d 016- 017- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d 018- 019- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 020- 021- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 022- bool(false) 023- 024- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d 025- 026- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d 027- 028- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 029- 030- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 031- bool(false)
1 (5%)
001+ Warning: openssl_csr_new(): private key length is too short; it needs to be at least 384 bits, not 0 in /dragonball/package/devel/php-7.4.26/ext/openssl/tests/CertificateGenerator.inc on line 128 001- Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array in %s on line %d 003+ Warning: openssl_csr_new(): Unable to generate a private key in /dragonball/package/devel/php-7.4.26/ext/openssl/tests/CertificateGenerator.inc on line 128 003- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 005+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /dragonball/package/devel/php-7.4.26/ext/openssl/tests/CertificateGenerator.inc on line 132 005- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 006- bool(false) 007+ Fatal error: Uncaught Exception: Failed to create certificate in /dragonball/package/devel/php-7.4.26/ext/openssl/tests/CertificateGenerator.inc:135 008+ Stack trace: 009+ #0 %s/bug68920.php(46): CertificateGenerator->saveNewCertAsFileWithKey('bug68920', '/dragonball/pac...') 010+ #1 {main} 011+ thrown in /dragonball/package/devel/php-7.4.26/ext/openssl/tests/CertificateGenerator.inc on line 135 008- Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array in %s on line %d 009- 010- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 011- 012- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 013- bool(false) 014- 015- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d 016- 017- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d 018- 019- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 020- 021- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 022- bool(false) 023- 024- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d 025- 026- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d 027- 028- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 029- 030- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 031- bool(false)
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /etc/php7-apache2/lib/php/extensions/no-debug-zts-20190902/mcrypt.so (/etc/php7-apache2/lib/php/extensions/no-debug-zts-20190902/mcrypt.so: cannot open shared object file: No such file or directory), /etc/php7-apache2/lib/php/extensions/no-debug-zts-20190902/mcrypt.so.so (/etc/php7-apache2/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 Warning: PHP Startup: Unable to load dynamic library 'newrelic.so' (tried: /etc/php7-apache2/lib/php/extensions/no-debug-zts-20190902/newrelic.so (/etc/php7-apache2/lib/php/extensions/no-debug-zts-20190902/newrelic.so: cannot open shared object file: No such file or directory), /etc/php7-apache2/lib/php/extensions/no-debug-zts-20190902/newrelic.so.so (/etc/php7-apache2/lib/php/extensions/no-debug-zts-20190902/newrelic.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 003+
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring' (tried: /usr/local/php-7.4/lib/php/extensions/no-debug-zts-20190902/mbstring (/usr/local/php-7.4/lib/php/extensions/no-debug-zts-20190902/mbstring: cannot open shared object file: No such file or directory), /usr/local/php-7.4/lib/php/extensions/no-debug-zts-20190902/mbstring.so (/usr/local/php-7.4/lib/php/extensions/no-debug-zts-20190902/mbstring.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 002+
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'imagick' (tried: /opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick (Cannot open "/opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick"), /opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick.so (Shared object "libMagickWand-7.so.7" not found, required by "imagick.so")) in Unknown on line 0 002+ PHP Warning: PHP Startup: Unable to load dynamic library 'imagick' (tried: /opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick (Cannot open "/opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick"), /opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick.so (Shared object "libMagickWand-7.so.7" not found, required by "imagick.so")) in Unknown on line 0 003+ PHP Warning: Module 'zip' already loaded in Unknown on line 0 004+
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'curl.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/curl.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/curl.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/curl.so.so (/usr/local/php/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 001- Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array in %s on line %d 003+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /dataNew/web/opt/php-7.4.26/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7 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 %s (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 /dataNew/web/opt/php-7.4.26/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 008- Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array in %s on line %d 009+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /dataNew/web/opt/php-7.4.26/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15 010+ bool(false) 010- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 011- 012- Warning: stream_socket_client(): unable to connect to %s (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 /dataNew/web/opt/php-7.4.26/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 19 014+ PHP Notice: fwrite(): write of 1 bytes failed with errno=32 Broken pipe in /dataNew/web/opt/php-7.4.26/ext/openssl/tests/ServerClientTestCase.inc on line 158 014- 015- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d 016- 017- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d 018- 019- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 020- 021- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 022- bool(false) 023- 024- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d 025- 026- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d 027- 028- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 029- 030- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 031- bool(false)
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php-7.4.26/lib/php/extensions/no-debug-non-zts-20190902/openssl.so' (tried: /opt/php-7.4.26/lib/php/extensions/no-debug-non-zts-20190902/openssl.so (/opt/php-7.4.26/lib/php/extensions/no-debug-non-zts-20190902/openssl.so: cannot open shared object file: No such file or directory), /opt/php-7.4.26/lib/php/extensions/no-debug-non-zts-20190902//opt/php-7.4.26/lib/php/extensions/no-debug-non-zts-20190902/openssl.so.so (/opt/php-7.4.26/lib/php/extensions/no-debug-non-zts-20190902//opt/php-7.4.26/lib/php/extensions/no-debug-non-zts-20190902/openssl.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 '/opt/php-7.4.26/lib/php/extensions/no-debug-non-zts-20190902/zip.so' (tried: /opt/php-7.4.26/lib/php/extensions/no-debug-non-zts-20190902/zip.so (/opt/php-7.4.26/lib/php/extensions/no-debug-non-zts-20190902/zip.so: cannot open shared object file: No such file or directory), /opt/php-7.4.26/lib/php/extensions/no-debug-non-zts-20190902//opt/php-7.4.26/lib/php/extensions/no-debug-non-zts-20190902/zip.so.so (/opt/php-7.4.26/lib/php/extensions/no-debug-non-zts-20190902//opt/php-7.4.26/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 001- Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array 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 /opt/php-7.4.26/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7 005+ bool(false) 005- Warning: stream_socket_client(): unable to connect to %s (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 /opt/php-7.4.26/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 008- Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array in %s on line %d 010+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /opt/php-7.4.26/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15 011+ bool(false) 010- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 011- 012- Warning: stream_socket_client(): unable to connect to %s (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 /opt/php-7.4.26/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 19 014- 015+ PHP Notice: fwrite(): write of 1 bytes failed with errno=32 Broken pipe in /opt/php-7.4.26/ext/openssl/tests/ServerClientTestCase.inc on line 158 015- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d 016- 017- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d 018- 019- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 020- 021- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 022- bool(false) 023- 024- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d 025- 026- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d 027- 028- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d 029- 030- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d 031- bool(false)
1 (5%)
001+ PHP Warning: Failed loading Zend extension 'opcache.so' (tried: /usr/local/php-7.4.26/lib/php/extensions/no-debug-non-zts-20190902/opcache.so (/usr/local/php-7.4.26/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.26/lib/php/extensions/no-debug-non-zts-20190902/opcache.so.so (/usr/local/php-7.4.26/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.26/lib/php/extensions/no-debug-non-zts-20190902/igbinary.so (/usr/local/php-7.4.26/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.26/lib/php/extensions/no-debug-non-zts-20190902/igbinary.so.so (/usr/local/php-7.4.26/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.26/lib/php/extensions/no-debug-non-zts-20190902/mongodb.so (/usr/local/php-7.4.26/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.26/lib/php/extensions/no-debug-non-zts-20190902/mongodb.so.so (/usr/local/php-7.4.26/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 'redis.so' (tried: /usr/local/php-7.4.26/lib/php/extensions/no-debug-non-zts-20190902/redis.so (/usr/local/php-7.4.26/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.26/lib/php/extensions/no-debug-non-zts-20190902/redis.so.so (/usr/local/php-7.4.26/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 005+
1 (5%)
001+ Derived class Locr\OGR\Geometry is initialized before base class IGeometry: interface is ignored 002+