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

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

Count Diff
1 (8%)
001+ PHP Warning: Failed loading Zend extension 'opcache.so' (tried: /usr/local/php7/lib/php/extensions/no-debug-zts-20170718/opcache.so (/usr/local/php7/lib/php/extensions/no-debug-zts-20170718/opcache.so: cannot open shared object file: No such file or directory), /usr/local/php7/lib/php/extensions/no-debug-zts-20170718/opcache.so.so (/usr/local/php7/lib/php/extensions/no-debug-zts-20170718/opcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
002+
1 (8%)
001+ PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) '/opt/php7/lib/php/extensions/no-debug-non-zts-20170718/zlib.so' 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.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7
004+ bool(false)
005+
006+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11
007+ bool(false)
008+
009+ Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in /root/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
010+
011+ Warning: stream_socket_client(): peer_fingerprint match failure in /root/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
012+
008- Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array in %s on line %d
014-
018+ Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in /root/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 19
019+
020+ Warning: stream_socket_client(): peer_fingerprint match failure in /root/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 19
026+ PHP Warning: stream_socket_accept(): accept failed: Connection timed out in /root/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 12
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 (8%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.so' (tried: /usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.so (/usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.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 '/usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so' (tried: /usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so (/usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
003+
1 (8%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /usr/lib/php/modules/curl (/usr/lib/php/modules/curl: cannot open shared object file: No such file or directory), /usr/lib/php/modules/curl.so (/usr/lib/php/modules/curl.so: undefined symbol: zend_hash_index_update)) in Unknown on line 0
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'zip' (tried: /usr/lib/php/modules/zip (/usr/lib/php/modules/zip: cannot open shared object file: No such file or directory), /usr/lib/php/modules/zip.so (/usr/lib/php/modules/zip.so: undefined symbol: zend_std_has_property)) in Unknown on line 0
003+
1 (8%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'openssl.so' (tried: /opt/soft/php/lib/php/extensions/no-debug-non-zts-20170718/openssl.so (/usr/local/gmssl/lib/libcrypto.so.1.1: version `OPENSSL_1_1_0' not found (required by /opt/soft/php/lib/php/extensions/no-debug-non-zts-20170718/openssl.so)), /opt/soft/php/lib/php/extensions/no-debug-non-zts-20170718/openssl.so.so (/opt/soft/php/lib/php/extensions/no-debug-non-zts-20170718/openssl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
002+
1 (8%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'raphf.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/raphf.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/raphf.so: undefined symbol: zval_ptr_dtor), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/raphf.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/raphf.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 'propro.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/propro.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/propro.so: undefined symbol: zend_string_init_interned), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/propro.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/propro.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 'http.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/http.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/http.so: undefined symbol: zend_string_init_interned), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/http.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/http.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 'pdo.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/pdo.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/pdo.so: undefined symbol: zend_string_init_interned), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/pdo.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/pdo.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
005+ PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module
006+ Module compiled with module API=20190902
007+ PHP compiled with module API=20170718
008+ These options need to match
009+ in Unknown on line 0
010+ PHP Warning: PHP Startup: pdo_sqlite: Unable to initialize module
011+ Module compiled with module API=20190902
012+ PHP compiled with module API=20170718
013+ These options need to match
014+ in Unknown on line 0
015+
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-
023+ Warning: stream_socket_client(): Expected peer fingerprint must be a string or an array in /usr/local/src/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11
024+
025+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/src/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11
026+
027+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/local/src/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 11
028+ bool(false)
029+
1 (8%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /home/php-7.2.32/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(): SSL: Connection reset by peer in /home/php-7.2.32/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
015+ Warning: stream_socket_client(): SSL: Success in /home/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
015- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d
017+ Warning: stream_socket_client(): Failed to enable crypto in /home/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
018+
019+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
020+ bool(false)
021+
022+ Warning: stream_socket_client(): SSL: Connection reset by peer in /home/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 19
017- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d
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 (8%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /root/source-code/php-7.2.32/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(): SSL: Success in /root/source-code/php-7.2.32/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
015+ Warning: stream_socket_client(): SSL: Success in /root/source-code/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
015- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d
017+ Warning: stream_socket_client(): Failed to enable crypto in /root/source-code/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
018+
019+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /root/source-code/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
020+ bool(false)
021+
022+ Warning: stream_socket_client(): SSL: Success in /root/source-code/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 19
017- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d
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 (8%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /usr/src/php-7.2.32/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(): SSL: Connection reset by peer in /usr/src/php-7.2.32/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
015+ Warning: stream_socket_client(): SSL: Connection reset by peer in /usr/src/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
015- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d
017+ Warning: stream_socket_client(): Failed to enable crypto in /usr/src/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
018+
019+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/src/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
020+ bool(false)
021+
022+ Warning: stream_socket_client(): SSL: Connection reset by peer in /usr/src/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 19
017- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d
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 (8%)
001+ Warning: stream_socket_client(): SSL: Success in /home/lichenglin/php72/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(): SSL: Connection reset by peer in /home/lichenglin/php72/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
015+ Warning: stream_socket_client(): SSL: Success in /home/lichenglin/php72/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
015- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d
017+ Warning: stream_socket_client(): Failed to enable crypto in /home/lichenglin/php72/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
018+
019+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/lichenglin/php72/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
020+ bool(false)
021+
022+ Warning: stream_socket_client(): SSL: Connection reset by peer in /home/lichenglin/php72/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 19
017- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d
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 (8%)
001+ Warning: stream_socket_client(): SSL: Success in /usr/local/src/php-7.2.32/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(): SSL: Success in /usr/local/src/php-7.2.32/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
015+ Warning: stream_socket_client(): SSL: Success in /usr/local/src/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
015- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d
017+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/src/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
018+
019+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/local/src/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
020+ bool(false)
021+
022+ Warning: stream_socket_client(): SSL: Success in /usr/local/src/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 19
017- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d
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 (8%)
001+ Warning: stream_socket_client(): SSL: Success in /usr/src/php-7.2.32/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(): SSL: Success in /usr/src/php-7.2.32/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
015+ Warning: stream_socket_client(): SSL: Success in /usr/src/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
015- Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form required in %s on line %d
017+ Warning: stream_socket_client(): Failed to enable crypto in /usr/src/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
018+
019+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/src/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 15
020+ bool(false)
021+
022+ Warning: stream_socket_client(): SSL: Success in /usr/src/php-7.2.32/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 19
017- Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d
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)