Test: /ext/openssl/tests/bug48182.phpt - Version 7.3.6        

Bug #48182 asynchronous socket connection over ssl fails entirely
Submitted: 2009-05-07 16:23:49 Modified: 2009-08-21 00:46:54
From: frase Assigned: srinatar
Status: Closed Package: OpenSSL related
PHP Version: 5.2.11RC1 OS: *

There are 19 different diffs reported by users for this test.

Count Diff
2 (10%)
002+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/curl.so' (tried: /usr/lib64/php/modules/curl.so (/usr/lib64/php/modules/curl.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20180731//usr/lib64/php/modules/curl.so.so (/usr/local/lib/php/extensions/no-debug-zts-20180731//usr/lib64/php/modules/curl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (5%)
002+ PHP Warning: fread() expects parameter 1 to be resource, bool given in /root/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 12
003+ PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /root/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 13
002- Sending bug48182
003- Sending data over to SSL server in async mode with contents like Hello World
004+
005+ Warning: stream_socket_client(): SSL: Success in /root/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
006+
007+ Warning: stream_socket_client(): Failed to enable crypto in /root/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
008+
009+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /root/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
010+
011+ Warning: fwrite() expects parameter 1 to be resource, bool given in /root/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 13
012+
013+ Warning: fread() expects parameter 1 to be resource, bool given in /root/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
1 (5%)
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'php_mbstring.dll' (tried: /usr/local/php/lib/php/extensions/no-debug-zts-20180731/php_mbstring.dll (/usr/local/php/lib/php/extensions/no-debug-zts-20180731/php_mbstring.dll: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-zts-20180731/php_mbstring.dll.so (/usr/local/php/lib/php/extensions/no-debug-zts-20180731/php_mbstring.dll.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
003+
002- Sending bug48182
003- Sending data over to SSL server in async mode with contents like Hello World
004+ Warning: stream_socket_client(): SSL: Connection refused in /home/hyojin/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
005+
006+ Warning: stream_socket_client(): Failed to enable crypto in /home/hyojin/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
007+
008+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/hyojin/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
009+
010+ Warning: fwrite() expects parameter 1 to be resource, bool given in /home/hyojin/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 13
011+
012+ Warning: fread() expects parameter 1 to be resource, bool given in /home/hyojin/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
013+ PHP Warning: fread() expects parameter 1 to be resource, bool given in /home/hyojin/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 12
1 (5%)
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'openssl' (tried: /usr/local/lib/php/extensions/no-debug-zts-20180731/openssl (/usr/local/lib/php/extensions/no-debug-zts-20180731/openssl: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20180731/openssl.so (/usr/local/lib/php/extensions/no-debug-zts-20180731/openssl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (5%)
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/mbstring (/usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/mbstring: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/mbstring.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/mbstring.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 'exif' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/exif (/usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/exif: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/exif.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20180731/exif.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (5%)
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'maxminddb.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20180731/maxminddb.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731/maxminddb.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20180731/maxminddb.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20180731/maxminddb.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (5%)
002+ PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'mysqli' in Unknown on line 0
1 (5%)
002+ PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0
1 (5%)
002+ Failed loading /usr/local/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so: /usr/local/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so: undefined symbol: gc_globals
1 (5%)
002+ Failed loading /usr/local/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so: /usr/local/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so: cannot open shared object file: No such file or directory
1 (5%)
002+ Failed loading /usr/local/lib/php/extensions/no-debug-non-zts-20160303/opcache.so: /usr/local/lib/php/extensions/no-debug-non-zts-20160303/opcache.so: undefined symbol: _zval_ptr_dtor
003+ PHP Warning: PHP Startup: msgpack: Unable to initialize module
002- Sending bug48182
003- Sending data over to SSL server in async mode with contents like Hello World
004+ Module compiled with module API=20160303
005+ PHP compiled with module API=20180731
006+ These options need to match
007+ in Unknown on line 0
008+ PHP Warning: PHP Startup: memcache: Unable to initialize module
009+ Module compiled with module API=20160303
010+ PHP compiled with module API=20180731
011+ These options need to match
012+ in Unknown on line 0
013+ PHP Warning: PHP Startup: memcached: Unable to initialize module
014+ Module compiled with module API=20160303
015+ PHP compiled with module API=20180731
016+ These options need to match
017+ in Unknown on line 0
018+ PHP Warning: PHP Startup: igbinary: Unable to initialize module
019+ Module compiled with module API=20160303
020+ PHP compiled with module API=20180731
021+ These options need to match
022+ in Unknown on line 0
023+ Sending bug48182
024+ Sending data over to SSL server in async mode with contents like Hello World
1 (5%)
002+
003+ Warning: stream_socket_client(): SSL: Success in /root/php7.3_from_source/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
002- Sending bug48182
003- Sending data over to SSL server in async mode with contents like Hello World
004+
005+ Warning: stream_socket_client(): Failed to enable crypto in /root/php7.3_from_source/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
006+
007+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /root/php7.3_from_source/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
008+
009+ Warning: fwrite() expects parameter 1 to be resource, bool given in /root/php7.3_from_source/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 13
010+
011+ Warning: fread() expects parameter 1 to be resource, bool given in /root/php7.3_from_source/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
1 (5%)
002+
003+ Warning: stream_socket_client(): SSL: Connection reset by peer in /home/spajak/tmp/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
002- Sending bug48182
003- Sending data over to SSL server in async mode with contents like Hello World
004+
005+ Warning: stream_socket_client(): Failed to enable crypto in /home/spajak/tmp/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
006+
007+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/spajak/tmp/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
008+
009+ Warning: fwrite() expects parameter 1 to be resource, bool given in /home/spajak/tmp/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 13
010+
011+ Warning: fread() expects parameter 1 to be resource, bool given in /home/spajak/tmp/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
1 (5%)
002+
003+ Warning: stream_socket_client(): SSL: Connection refused in /root/work/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
002- Sending bug48182
003- Sending data over to SSL server in async mode with contents like Hello World
004+
005+ Warning: stream_socket_client(): Failed to enable crypto in /root/work/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
006+
007+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /root/work/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
008+
009+ Warning: fwrite() expects parameter 1 to be resource, bool given in /root/work/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 13
010+
011+ Warning: fread() expects parameter 1 to be resource, bool given in /root/work/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
1 (5%)
002+
003+ Warning: stream_socket_client(): SSL: Connection refused in /root/install/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
002- Sending bug48182
003- Sending data over to SSL server in async mode with contents like Hello World
004+
005+ Warning: stream_socket_client(): Failed to enable crypto in /root/install/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
006+
007+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /root/install/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
008+
009+ Warning: fwrite() expects parameter 1 to be resource, bool given in /root/install/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 13
010+
011+ Warning: fread() expects parameter 1 to be resource, bool given in /root/install/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
1 (5%)
002+
003+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
002- Sending bug48182
003- Sending data over to SSL server in async mode with contents like Hello World
004+ error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/src/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
005+
006+ Warning: stream_socket_client(): Failed to enable crypto in /usr/src/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
007+
008+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/src/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
009+
010+ Warning: fwrite() expects parameter 1 to be resource, bool given in /usr/src/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 13
011+
012+ Warning: fread() expects parameter 1 to be resource, bool given in /usr/src/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
1 (5%)
002+
003+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
002- Sending bug48182
003- Sending data over to SSL server in async mode with contents like Hello World
004+ error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /usr/local/src/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
005+
006+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/src/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
007+
008+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/local/src/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
009+
010+ Warning: fwrite() expects parameter 1 to be resource, bool given in /usr/local/src/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 13
011+
012+ Warning: fread() expects parameter 1 to be resource, bool given in /usr/local/src/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
1 (5%)
002+
003+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
002- Sending bug48182
003- Sending data over to SSL server in async mode with contents like Hello World
004+ error:0A000126:SSL routines::unexpected eof while reading in /root/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
005+
006+ Warning: stream_socket_client(): Failed to enable crypto in /root/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
007+
008+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /root/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
009+
010+ Warning: fwrite() expects parameter 1 to be resource, bool given in /root/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 13
011+
012+ Warning: fread() expects parameter 1 to be resource, bool given in /root/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
1 (5%)
002+
003+ Warning: openssl_x509_export_to_file(): cannot get cert from parameter 1 in /opt/src/php/php-7.3.6/ext/openssl/tests/CertificateGenerator.inc on line 82
002- Sending bug48182
003- Sending data over to SSL server in async mode with contents like Hello World
004+
005+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /opt/src/php/php-7.3.6/ext/openssl/tests/CertificateGenerator.inc on line 100
006+
007+ Warning: openssl_x509_export(): cannot get cert from parameter 1 in /opt/src/php/php-7.3.6/ext/openssl/tests/CertificateGenerator.inc on line 104
008+
009+ Warning: openssl_pkey_export(): cannot get key from parameter 1 in /opt/src/php/php-7.3.6/ext/openssl/tests/CertificateGenerator.inc on line 107
010+ PHP Warning: PHP Startup: openssl: Unable to initialize module
011+ Module compiled with module API=20170718
012+ PHP compiled with module API=20180731
013+ These options need to match
014+ in Unknown on line 0
015+ PHP Warning: PHP Startup: gd: Unable to initialize module
016+ Module compiled with module API=20170718
017+ PHP compiled with module API=20180731
018+ These options need to match
019+ in Unknown on line 0
020+
021+ Warning: failed loading cafile stream: `/opt/src/php/php-7.3.6/ext/openssl/tests/bug48182-ca.pem.tmp' in /opt/src/php/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
022+
023+ Warning: stream_socket_client(): Failed to enable crypto in /opt/src/php/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
024+
025+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /opt/src/php/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9
026+
027+ Warning: fwrite() expects parameter 1 to be resource, bool given in /opt/src/php/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 13
028+
029+ Warning: fread() expects parameter 1 to be resource, bool given in /opt/src/php/php-7.3.6/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14