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

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

Count Diff
1 (13%)
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 (13%)
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(): 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 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(): Expected peer fingerprint must be a string or an array in /usr/local/src/php-7.4.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7 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 7 019+
1 (13%)
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 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 /home/friverag/Downloads/php-7.4.15/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 /home/friverag/Downloads/php-7.4.15/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 /home/friverag/Downloads/php-7.4.15/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 (13%)
001+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/home/sama/php-7.4.1/ext/openssl/tests/san-cert.pem'; Check that your cafile/capath settings include details of your certificate and its issuer in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10
002+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10
003+ PHP Warning: stream_socket_accept(): accept failed: Success in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10
004+
005+ Warning: stream_socket_client(): SSL: Success in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7
001- Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array in %s on line %d
008- Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array in %s on line %d
011+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/home/sama/php-7.4.1/ext/openssl/tests/san-cert.pem'; Check that your cafile/capath settings include details of your certificate and its issuer in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11
012+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11
014+ Warning: stream_socket_client(): SSL: Success in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11
015- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d
017- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d
018-
019+ PHP Warning: stream_socket_accept(): accept failed: Success in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11
021+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/home/sama/php-7.4.1/ext/openssl/tests/san-cert.pem'; Check that your cafile/capath settings include details of your certificate and its issuer in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 12
022+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 12
023+ PHP Warning: stream_socket_accept(): accept failed: Success in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 12
024- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d
025+ Warning: stream_socket_client(): SSL: Success in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
026- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d
027-
031+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/home/sama/php-7.4.1/ext/openssl/tests/san-cert.pem'; Check that your cafile/capath settings include details of your certificate and its issuer in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 13
032+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 13
034+ Warning: stream_socket_client(): SSL: Success in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 19
037+ PHP Warning: stream_socket_accept(): accept failed: Success in /home/sama/php-7.4.1/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 13
1 (13%)
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 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 /root/php-7.4.15/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 /root/php-7.4.15/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 /root/php-7.4.15/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 /root/php-7.4.15/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 /root/php-7.4.15/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 (13%)
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 (13%)
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 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 001- Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array 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 %s (Unknown error) in %s on line %d 006- bool(false) 007- 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 026+ Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array in /soft/php-7.4.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7 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 7 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 7 031+ bool(false) 032+ 033+ Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array in /soft/php-7.4.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11 034+ 035+ 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 11 036+ 037+ 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 11 038+ bool(false) 039+ 040+ Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in /soft/php-7.4.15/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15 041+
1 (13%)
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+