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

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

Count Diff
2 (25%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/local/src/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : 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/local/src/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : 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/local/src/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : 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/local/src/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : 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+ eAccelerator requires Zend Engine API version 220090626.
002+ The Zend Engine API version 220131226 which is installed, is newer.
003+ Contact eAccelerator at http://eaccelerator.net for a later version of eAccelerator.
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- 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 /usr/local/src/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 7
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 /usr/local/src/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 11
010+ bool(false)
010- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d
012+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/local/src/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 15
013+ bool(false)
012- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d
015+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/local/src/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : 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+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /mnt/root/CW/BOX/develop/BOX/Linux/st/current/working/package/apps/system/daemons/httpd/php/php/php/php/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : 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 /mnt/root/CW/BOX/develop/BOX/Linux/st/current/working/package/apps/system/daemons/httpd/php/php/php/php/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : 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 /mnt/root/CW/BOX/develop/BOX/Linux/st/current/working/package/apps/system/daemons/httpd/php/php/php/php/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : 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 /mnt/root/CW/BOX/develop/BOX/Linux/st/current/working/package/apps/system/daemons/httpd/php/php/php/php/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : 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+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/phpsrc/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : 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/phpsrc/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : 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/phpsrc/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : 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/phpsrc/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : 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: PHP Startup: apc: Unable to initialize module
002+ Module compiled with module API=20090626
003+ PHP compiled with module API=20131226
004+ These options need to match
005+ in Unknown on line 0
006+ PHP Warning: PHP Startup: phpcups: Unable to initialize module
007+ Module compiled with module API=20090626
008+ PHP compiled with module API=20131226
009+ These options need to match
010+ in Unknown on line 0
011+ PHP Warning: PHP Startup: http: Unable to initialize module
012+ Module compiled with module API=20090626
013+ PHP compiled with module API=20131226
014+ These options need to match
015+ in Unknown on line 0
016+ PHP Warning: PHP Startup: imagick: Unable to initialize module
017+ Module compiled with module API=20090626
018+ PHP compiled with module API=20131226
019+ These options need to match
020+ in Unknown on line 0
021+ PHP Warning: PHP Startup: oci8: Unable to initialize module
022+ Module compiled with module API=20090626
023+ PHP compiled with module API=20131226
024+ These options need to match
025+ in Unknown on line 0
026+ PHP Warning: PHP Startup: ssh2: Unable to initialize module
027+ Module compiled with module API=20090626
028+ PHP compiled with module API=20131226
029+ These options need to match
030+ in Unknown on line 0
031+ PHP Warning: PHP Startup: zip: Unable to initialize module
032+ Module compiled with module API=20090626
033+ PHP compiled with module API=20131226
034+ These options need to match
035+ in Unknown on line 0
036+ PHP Fatal error: Directive 'allow_call_time_pass_reference' is no longer available in PHP 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
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
028- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d
030- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d
038+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/install/php/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 7
039+ bool(false)
041+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/install/php/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 11
042+ bool(false)
043+
044+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/install/php/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 15
045+ bool(false)
046+
047+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/install/php/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 19
1 (13%)
001+ PHP Warning: PHP Startup: XCache: Unable to initialize module
002+ Module compiled with module API=20090626
003+ PHP compiled with module API=20131226
004+ These options need to match
005+ in Unknown on line 0
006+ PHP Warning: PHP Startup: pdo_informix: Unable to initialize module
007+ Module compiled with module API=20090626
008+ PHP compiled with module API=20131226
009+ These options need to match
010+ in Unknown on line 0
011+ PHP Warning: PHP Startup: imagick: Unable to initialize module
012+ Module compiled with module API=20090626
013+ PHP compiled with module API=20131226
014+ These options need to match
015+ in Unknown on line 0
016+ PHP Fatal error: Directive 'allow_call_time_pass_reference' is no longer available in PHP 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)
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(): Failed to enable crypto in %s on line %d
012- Warning: stream_socket_client(): unable to connect to %s (Unknown error) in %s on line %d
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
018+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /opt/download/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 7
019+ bool(false)
021+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /opt/download/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 11
022+ bool(false)
024+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /opt/download/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 15
027+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /opt/download/php-5.6.12/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 19
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%)