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

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

Count Diff
1 (14%)
008- resource(%d) of type (stream)
009+ Warning: stream_socket_client(): SSL: Handshake timed out in /home/dirk/php-5.6.0RC3/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.0RC3/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.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
014+ bool(false)
015+
016+ Warning: stream_socket_client(): SSL: Handshake timed out in /home/dirk/php-5.6.0RC3/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 (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
002-
005+
006+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/local/src/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
007+ bool(false)
008+
009+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/local/src/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
010+ bool(false)
007- resource(%d) of type (stream)
008- resource(%d) of type (stream)
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
012+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/local/src/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
1 (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
002-
005+
006+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /Users/kylinboy/dev_tools/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
007+ bool(false)
008+
009+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /Users/kylinboy/dev_tools/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
010+ bool(false)
007- resource(%d) of type (stream)
008- resource(%d) of type (stream)
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
012+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /Users/kylinboy/dev_tools/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
1 (14%)
001+ Warning: stream_socket_client(): SSL: Handshake timed out in /home/crazy-boy/source-software/web-development-environment/php-software/php-5.6.0RC3/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+
008+ Warning: stream_socket_client(): SSL: Handshake timed out in /home/crazy-boy/source-software/web-development-environment/php-software/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
007- resource(%d) of type (stream)
008- resource(%d) of type (stream)
010+ Warning: stream_socket_client(): Failed to enable crypto in /home/crazy-boy/source-software/web-development-environment/php-software/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
011+
012+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/crazy-boy/source-software/web-development-environment/php-software/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
013+ bool(false)
014+
015+ Warning: stream_socket_client(): SSL: Handshake timed out in /home/crazy-boy/source-software/web-development-environment/php-software/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
016+
017+ Warning: stream_socket_client(): Failed to enable crypto in /home/crazy-boy/source-software/web-development-environment/php-software/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
018+
019+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/crazy-boy/source-software/web-development-environment/php-software/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
020+ bool(false)
021+
022+ Warning: stream_socket_client(): SSL: Handshake timed out in /home/crazy-boy/source-software/web-development-environment/php-software/php-5.6.0RC3/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 (14%)
001+ PHP Warning: PHP Startup: bz2: Unable to initialize module
002+ Module compiled with module API=20121212
003+ PHP compiled with module API=20131226
004+ These options need to match
005+ in Unknown on line 0
006+ PHP Warning: PHP Startup: curl: Unable to initialize module
007+ Module compiled with module API=20121212
008+ PHP compiled with module API=20131226
009+ These options need to match
010+ in Unknown on line 0
011+ PHP Warning: PHP Startup: gettext: Unable to initialize module
012+ Module compiled with module API=20121212
013+ PHP compiled with module API=20131226
014+ These options need to match
015+ 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
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 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)
016+ PHP Warning: PHP Startup: openssl: Unable to initialize module
017+ Module compiled with module API=20121212
018+ PHP compiled with module API=20131226
019+ These options need to match
020+ in Unknown on line 0
021+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/phar.so' - /usr/lib/php/modules/phar.so: undefined symbol: zend_get_hash_value in Unknown on line 0
022+ PHP Warning: PHP Startup: xsl: Unable to initialize module
023+ Module compiled with module API=20121212
024+ PHP compiled with module API=20131226
025+ These options need to match
026+ in Unknown on line 0
027+ PHP Warning: stream_socket_server(): unable to connect to ssl://127.0.0.1:64321 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /home/cdiaz/downloads/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(86) : eval()'d code on line 7
028+
029+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/cdiaz/downloads/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
030+ bool(false)
031+
032+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/cdiaz/downloads/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
033+ bool(false)
034+
035+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/cdiaz/downloads/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
036+ bool(false)
037+
038+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/cdiaz/downloads/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
039+ bool(false)
1 (14%)
001+ Failed loading /usr/local/lib/php/extensions/no-debug-non-zts-20131226/opcache.so: /usr/local/lib/php/extensions/no-debug-non-zts-20131226/opcache.so: cannot open shared object file: No such file or directory
002+
1 (14%)
001+ Failed loading /usr/lib/php/extensions/debug-non-zts-20121212/xdebug.so: dlopen(/usr/lib/php/extensions/debug-non-zts-20121212/xdebug.so, 9): image not found
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 /downloads/php/php-5.6.0RC3/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 /downloads/php/php-5.6.0RC3/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 /downloads/php/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14
010+ bool(false)
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
012+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /downloads/php/php-5.6.0RC3/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 14