Test: /ext/openssl/tests/bug65729.phpt - Version 7.1.17        

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

Count Diff
6 (30%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php-7.1/lib/php/extensions/no-debug-non-zts-20160303/gmp.so' - /opt/php-7.1/lib/php/extensions/no-debug-non-zts-20160303/gmp.so: file too short in Unknown on line 0
002+
3 (15%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/php7/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 14
002+ bool(false)
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
004+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/php7/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 14
005+ bool(false)
005- Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (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 /root/php7/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 14
007- resource(%d) of type (stream)
008- resource(%d) of type (stream)
010+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/php7/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : 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
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
3 (15%)
001+ Warning: stream_socket_client(): SSL: Success in /usr/local/src/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : 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: Success in /usr/local/src/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : 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 /usr/local/src/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : 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 /usr/local/src/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 14
013+ bool(false)
014+
015+ Warning: stream_socket_client(): SSL: Success in /usr/local/src/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 14
016+
017+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/src/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : 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 /usr/local/src/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 14
020+ bool(false)
021+
022+ Warning: stream_socket_client(): SSL: Success in /usr/local/src/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : 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
2 (10%)
001+ PHP Warning: PHP Startup: swoole: Unable to initialize module
002+ Module compiled with module API=20151012
003+ PHP compiled with module API=20160303
004+ These options need to match
005+ in Unknown on line 0
006+
1 (5%)
001+ XDebug could not open the remote debug file '/tmp/xdebug/xdebug.log'.
002+
1 (5%)
001+ Warning: stream_socket_client(): SSL: Success in /data/env/php/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : 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: Success in /data/env/php/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : 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 /data/env/php/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : 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 /data/env/php/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 14
013+ bool(false)
014+
015+ Warning: stream_socket_client(): SSL: Success in /data/env/php/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 14
016+
017+ Warning: stream_socket_client(): Failed to enable crypto in /data/env/php/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : 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 /data/env/php/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 14
020+ bool(false)
021+
022+ Warning: stream_socket_client(): SSL: Success in /data/env/php/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : 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 (5%)
001+ PHP Warning: PHP Startup: redis: Unable to initialize module
002+ Module compiled with module API=20151012
003+ PHP compiled with module API=20160303
004+ These options need to match
005+ in Unknown on line 0
006+
1 (5%)
001+ PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module
002+ Module compiled with module API=20100525
003+ PHP compiled with module API=20160303
004+ These options need to match
005+ in Unknown on line 0
006+
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20160303/http.so' - libicuuc.so.57: cannot open shared object file: No such file or directory in Unknown on line 0
002+ XDebug could not open the remote debug file '/tmp/xdebug/xdebug.log'.
003+
1 (5%)
001+ Failed loading /usr/lib64/php/modules/ioncube_loader_lin_5.4.so: /usr/lib64/php/modules/ioncube_loader_lin_5.4.so: undefined symbol: zend_block_interruptions
002+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/curl.so' - /usr/lib64/20160303/curl.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 '/usr/lib64/20160303/dom.so' - /usr/lib64/20160303/dom.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 '/usr/lib64/20160303/fileinfo.so' - /usr/lib64/20160303/fileinfo.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 '/usr/lib64/20160303/gd.so' - /usr/lib64/20160303/gd.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 '/usr/lib64/20160303/imap.so' - /usr/lib64/20160303/imap.so: cannot open shared object file: No such file or directory in Unknown on line 0
007+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/json.so' - /usr/lib64/20160303/json.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 '/usr/lib64/20160303/ldap.so' - /usr/lib64/20160303/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
009+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/mbstring.so' - /usr/lib64/20160303/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
010+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/mcrypt.so' - /usr/lib64/20160303/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0
011+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/mysql.so' - /usr/lib64/20160303/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
012+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/mysqli.so' - /usr/lib64/20160303/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
013+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/odbc.so' - /usr/lib64/20160303/odbc.so: cannot open shared object file: No such file or directory in Unknown on line 0
014+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/pdo.so' - /usr/lib64/20160303/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
015+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/pdo_mysql.so' - /usr/lib64/20160303/pdo_mysql.so: cannot open shared object file: No such file or directory 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: Unable to load dynamic library '/usr/lib64/20160303/pdo_odbc.so' - /usr/lib64/20160303/pdo_odbc.so: cannot open shared object file: No such file or directory in Unknown on line 0
017+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/pdo_sqlite.so' - /usr/lib64/20160303/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
018+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/phar.so' - /usr/lib64/20160303/phar.so: cannot open shared object file: No such file or directory in Unknown on line 0
019+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/snmp.so' - /usr/lib64/20160303/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
020+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/sqlite3.so' - /usr/lib64/20160303/sqlite3.so: cannot open shared object file: No such file or directory in Unknown on line 0
021+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/wddx.so' - /usr/lib64/20160303/wddx.so: cannot open shared object file: No such file or directory in Unknown on line 0
022+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/xmlreader.so' - /usr/lib64/20160303/xmlreader.so: cannot open shared object file: No such file or directory in Unknown on line 0
023+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/xmlrpc.so' - /usr/lib64/20160303/xmlrpc.so: cannot open shared object file: No such file or directory in Unknown on line 0
024+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/xmlwriter.so' - /usr/lib64/20160303/xmlwriter.so: cannot open shared object file: No such file or directory in Unknown on line 0
025+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/xsl.so' - /usr/lib64/20160303/xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0
026+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20160303/zip.so' - /usr/lib64/20160303/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0
027+
028+ Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.test.com.sg' in /usr/src/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 14
029+
030+ Warning: stream_socket_client(): Failed to enable crypto in /usr/src/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 14
031+
032+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/src/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 14
033+ bool(false)
034+ resource(11) of type (stream)
035+ resource(13) of type (stream)
036+
037+ Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.bar.test.com' in /usr/src/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 14
038+
039+ Warning: stream_socket_client(): Failed to enable crypto in /usr/src/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 14
040+
041+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/src/php-7.1.17/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 14
042+ bool(false)