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

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

Count Diff
1 (11%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/strictlyadm/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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 /home/strictlyadm/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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 /home/strictlyadm/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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 /home/strictlyadm/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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
1 (11%)
001+ Warning: stream_socket_client(): SSL: Success in /usr/local/resource/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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/resource/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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/resource/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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/resource/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
013+ bool(false)
014+
015+ Warning: stream_socket_client(): SSL: Success in /usr/local/resource/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
016+
017+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/resource/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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/resource/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
020+ bool(false)
021+
022+ Warning: stream_socket_client(): SSL: Success in /usr/local/resource/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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 (11%)
001+ Warning: stream_socket_client(): SSL: Success in /root/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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: Connection reset by peer in /root/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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 /root/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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 /root/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
013+ bool(false)
014+
015+ Warning: stream_socket_client(): SSL: Connection reset by peer in /root/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
016+
017+ Warning: stream_socket_client(): Failed to enable crypto in /root/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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 /root/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
020+ bool(false)
021+
022+ Warning: stream_socket_client(): SSL: Connection reset by peer in /root/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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 (11%)
001+ Warning: stream_socket_client(): SSL: Success in /home/chenyudong/flsrc/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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 /home/chenyudong/flsrc/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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/chenyudong/flsrc/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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/chenyudong/flsrc/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
013+ bool(false)
014+
015+ Warning: stream_socket_client(): SSL: Success in /home/chenyudong/flsrc/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
016+
017+ Warning: stream_socket_client(): Failed to enable crypto in /home/chenyudong/flsrc/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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/chenyudong/flsrc/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
020+ bool(false)
021+
022+ Warning: stream_socket_client(): SSL: Success in /home/chenyudong/flsrc/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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 (11%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'redis' (tried: /Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/redis (/Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/redis: cannot open shared object file: No such file or directory), /Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/redis.so (/Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/redis.so: invalid ELF header)) in Unknown on line 0
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'iconv' (tried: /Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/iconv (/Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/iconv: cannot open shared object file: No such file or directory), /Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/iconv.so (/Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/iconv.so: invalid ELF header)) in Unknown on line 0
003+ PHP Warning: PHP Startup: Unable to load dynamic library 'fileinfo' (tried: /Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/fileinfo (/Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/fileinfo: cannot open shared object file: No such file or directory), /Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/fileinfo.so (/Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/fileinfo.so: invalid ELF header)) in Unknown on line 0
004+ PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/intl (/Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/intl: cannot open shared object file: No such file or directory), /Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/intl.so (/Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/intl.so: invalid ELF header)) in Unknown on line 0
005+ PHP Warning: PHP Startup: Unable to load dynamic library 'pcntl' (tried: /Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/pcntl (/Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/pcntl: cannot open shared object file: No such file or directory), /Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/pcntl.so (/Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/pcntl.so: invalid ELF header)) in Unknown on line 0
006+ PHP Warning: PHP Startup: Unable to load dynamic library 'swoole' (tried: /Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/swoole (/Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/swoole: cannot open shared object file: No such file or directory), /Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/swoole.so (/Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/swoole.so: invalid ELF header)) in Unknown on line 0
007+ PHP Warning: PHP Startup: Unable to load dynamic library 'ssh2' (tried: /Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/ssh2 (/Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/ssh2: cannot open shared object file: No such file or directory), /Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/ssh2.so (/Users/flsof/php/php-7.2.19/lib/php/extensions/no-debug-zts-20170718/ssh2.so: invalid ELF header)) 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
007- resource(%d) of type (stream)
008- resource(%d) of type (stream)
009+ Warning: stream_socket_client(): SSL: Success in /home/chenyudong/flsrc/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
010+
010- Warning: stream_socket_client(): Peer certificate CN=`*.test.com' did not match expected CN=`foo.bar.test.com' in %s on line %d
015+
016+ Warning: stream_socket_client(): SSL: Success in /home/chenyudong/flsrc/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
018+ Warning: stream_socket_client(): Failed to enable crypto in /home/chenyudong/flsrc/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
019+
020+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/chenyudong/flsrc/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
021+ bool(false)
022+
023+ Warning: stream_socket_client(): SSL: Success in /home/chenyudong/flsrc/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
024+
025+ Warning: stream_socket_client(): Failed to enable crypto in /home/chenyudong/flsrc/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
026+
027+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/chenyudong/flsrc/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
028+ bool(false)
029+
030+ Warning: stream_socket_client(): SSL: Success in /home/chenyudong/flsrc/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
1 (11%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'intl.so' (tried: /opt/php-7.2.19/lib/php/extensions/no-debug-non-zts-20170718/intl.so (/opt/php-7.2.19/lib/php/extensions/no-debug-non-zts-20170718/intl.so: cannot open shared object file: No such file or directory), /opt/php-7.2.19/lib/php/extensions/no-debug-non-zts-20170718/intl.so.so (/opt/php-7.2.19/lib/php/extensions/no-debug-non-zts-20170718/intl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
002+
1 (11%)
001+ PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'mbstring.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 /opt/src/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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 /opt/src/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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 /opt/src/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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 /opt/src/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
1 (11%)
001+ PHP Warning: Failed loading Zend extension 'opcache.so' (tried: /usr/local/php-7.2.19/lib/php/extensions/no-debug-non-zts-20170718/opcache.so (/usr/local/php-7.2.19/lib/php/extensions/no-debug-non-zts-20170718/opcache.so: cannot open shared object file: No such file or directory), /usr/local/php-7.2.19/lib/php/extensions/no-debug-non-zts-20170718/opcache.so.so (/usr/local/php-7.2.19/lib/php/extensions/no-debug-non-zts-20170718/opcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
002+
1 (11%)
001+ PHP Deprecated: Directive 'track_errors' is deprecated 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 /home/tsuneta/ダウンロード/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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 /home/tsuneta/ダウンロード/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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 /home/tsuneta/ダウンロード/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : 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 /home/tsuneta/ダウンロード/php-7.2.19/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14