Test: /ext/openssl/tests/bug65729.phpt - Version 5.6.0RC2        

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

Count Diff
1 (20%)
008+
009+ Warning: stream_socket_client(): SSL: Handshake timed out in /home/dirk/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
010+
011+ Warning: stream_socket_client(): Failed to enable crypto in /home/dirk/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
012+
013+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/dirk/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
014+ bool(false)
008- resource(%d) of type (stream)
1 (20%)
001+ Zend OPcache requires Zend Engine API version 220121212.
002+ The Zend Engine API version 220131226 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(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.test.com.sg' in %s on line %d
003- Warning: stream_socket_client(): Failed to enable crypto in %s on line %d
005+ Xdebug requires Zend Engine API version 220121212.
006+ The Zend Engine API version 220131226 which is installed, is newer.
007+ Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug.
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-
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)
009+ PHP Warning: PHP Startup: http: Unable to initialize module
010+ Module compiled with module API=20121212
011+ PHP compiled with module API=20131226
012+ These options need to match
013+ in Unknown on line 0
014+ PHP Warning: PHP Startup: mongo: Unable to initialize module
015+ Module compiled with module API=20121212
016+ PHP compiled with module API=20131226
017+ These options need to match
018+ in Unknown on line 0
019+ PHP Warning: PHP Startup: redis: Unable to initialize module
020+ Module compiled with module API=20121212
021+ PHP compiled with module API=20131226
022+ These options need to match
023+ in Unknown on line 0
024+ PHP Warning: PHP Startup: XCache: Unable to initialize module
025+ Module compiled with module API=20121212
026+ PHP compiled with module API=20131226
027+ These options need to match
028+ in Unknown on line 0
029+
030+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/egor/data/tmp/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
031+ bool(false)
032+
033+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/egor/data/tmp/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
034+ bool(false)
035+
036+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/egor/data/tmp/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
037+ bool(false)
038+
039+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/egor/data/tmp/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
040+ bool(false)
1 (20%)
001+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
002+ error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /u01/soft/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
001- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.test.com.sg' in %s on line %d
007- resource(%d) of type (stream)
008- resource(%d) of type (stream)
009+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
010+ error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /u01/soft/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
011+
012+ Warning: stream_socket_client(): Failed to enable crypto in /u01/soft/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
013+
014+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /u01/soft/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
015+ bool(false)
016+
017+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
018+ error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /u01/soft/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
019+
020+ Warning: stream_socket_client(): Failed to enable crypto in /u01/soft/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
021+
022+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /u01/soft/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
023+ bool(false)
024+
025+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
026+ error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /u01/soft/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
010- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.bar.test.com' in %s on line %d
1 (20%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/php_pdflib.so' - Cannot open "/usr/local/lib/php/20131226/php_pdflib.so" 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 /export/FreeBSD/src/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : 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 /export/FreeBSD/src/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
008- resource(%d) of type (stream)
1 (20%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/php_pdflib.so' - Cannot open "/usr/local/lib/php/20131226/php_pdflib.so" 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 /export/FreeBSD/src/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : 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 /export/FreeBSD/src/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : 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 /export/FreeBSD/src/php-5.6.0RC2/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
010+ bool(false)