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

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

Count Diff
3 (7%)
002+ Zend OPcache requires Zend Engine API version 320180731. 003+ The Zend Engine API version 320190902 which is installed, is newer. 004+ Contact Zend Technologies at http://www.zend.com/ for a later version of Zend OPcache. 005+
3 (7%)
002+ 003+ Warning: stream_socket_client(): SSL: Connection reset by peer in /usr/src/php-7.4.3/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 /usr/src/php-7.4.3/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 /usr/src/php-7.4.3/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 /usr/src/php-7.4.3/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 /usr/src/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
2 (5%)
002+ PHP Warning: fread() expects parameter 1 to be resource, bool given in /root/php-7.4.3/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.4.3/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.4.3/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.4.3/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.4.3/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.4.3/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.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
2 (5%)
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'pgsql' (tried: /opt/Apache74/lib/extensions/no-debug-zts-20190902/pgsql (/opt/Apache74/lib/extensions/no-debug-zts-20190902/pgsql: cannot open shared object file: No such file or directory), /opt/Apache74/lib/extensions/no-debug-zts-20190902/pgsql.so (/opt/Apache74/lib/extensions/no-debug-zts-20190902/pgsql.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 003+ PHP Warning: Module 'sodium' already loaded in Unknown on line 0 004+ PHP Warning: Module 'gmagick' already loaded in Unknown on line 0 005+ PHP Warning: Module 'grpc' already loaded in Unknown on line 0
2 (5%)
002+ 003+ Warning: stream_socket_client(): SSL: Success in /root/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/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/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/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/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
2 (5%)
002+ 003+ Warning: stream_socket_client(): SSL: Connection reset by peer in /home/ubuntu/php-src-php-7.4.3/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/ubuntu/php-src-php-7.4.3/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/ubuntu/php-src-php-7.4.3/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/ubuntu/php-src-php-7.4.3/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/ubuntu/php-src-php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
1 (2%)
002+ PHP Warning: fread() expects parameter 1 to be resource, bool given in /usr/src/httpd/requirements/php/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 /usr/src/httpd/requirements/php/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 /usr/src/httpd/requirements/php/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9 006+ 007+ Warning: stream_socket_client(): Failed to enable crypto in /usr/src/httpd/requirements/php/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 /usr/src/httpd/requirements/php/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 /usr/src/httpd/requirements/php/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 /usr/src/httpd/requirements/php/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
1 (2%)
002+ PHP Warning: fread() expects parameter 1 to be resource, bool given in /root/php-7.4.4/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.4.4/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.4.4/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.4.4/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.4.4/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.4.4/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.4.4/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
1 (2%)
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'zlib.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/zlib.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/zlib.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/zlib.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/zlib.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (2%)
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'pthreads.so' (tried: /etc/php7/lib/php/extensions/debug-zts-20190902/pthreads.so (/etc/php7/lib/php/extensions/debug-zts-20190902/pthreads.so: cannot open shared object file: No such file or directory), /etc/php7/lib/php/extensions/debug-zts-20190902/pthreads.so.so (/etc/php7/lib/php/extensions/debug-zts-20190902/pthreads.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (2%)
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'pgsql' (tried: /opt/Apache74/lib/extensions/no-debug-zts-20190902/pgsql (/opt/Apache74/lib/extensions/no-debug-zts-20190902/pgsql: cannot open shared object file: No such file or directory), /opt/Apache74/lib/extensions/no-debug-zts-20190902/pgsql.so (/opt/Apache74/lib/extensions/no-debug-zts-20190902/pgsql.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 'gnupg.so' (tried: /opt/Apache74/lib/extensions/no-debug-zts-20190902/gnupg.so (/opt/Apache74/lib/extensions/no-debug-zts-20190902/gnupg.so: cannot open shared object file: No such file or directory), /opt/Apache74/lib/extensions/no-debug-zts-20190902/gnupg.so.so (/opt/Apache74/lib/extensions/no-debug-zts-20190902/gnupg.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 004+ PHP Warning: Module 'sodium' already loaded in Unknown on line 0
1 (2%)
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: /usr/local/php7/lib/php/extensions/no-debug-zts-20190902/mysqli (/usr/local/php7/lib/php/extensions/no-debug-zts-20190902/mysqli: cannot open shared object file: No such file or directory), /usr/local/php7/lib/php/extensions/no-debug-zts-20190902/mysqli.so (/usr/local/php7/lib/php/extensions/no-debug-zts-20190902/mysqli.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (2%)
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring' (tried: /usr/lib/php/modules/mbstring (/usr/lib/php/modules/mbstring: cannot open shared object file: No such file or directory), /usr/lib/php/modules/mbstring.so (/usr/lib/php/modules/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 'pdo_sqlite' (tried: /usr/lib/php/modules/pdo_sqlite (/usr/lib/php/modules/pdo_sqlite: cannot open shared object file: No such file or directory), /usr/lib/php/modules/pdo_sqlite.so (/usr/lib/php/modules/pdo_sqlite.so: undefined symbol: core_globals)) in Unknown on line 0
1 (2%)
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring' (tried: /usr/lib/php/modules/mbstring (/usr/lib/php/modules/mbstring: cannot open shared object file: No such file or directory), /usr/lib/php/modules/mbstring.so (/usr/lib/php/modules/mbstring.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (2%)
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /opt/apache2/php/lib/php/extensions/no-debug-zts-20190902/imagick.so (/opt/apache2/php/lib/php/extensions/no-debug-zts-20190902/imagick.so: cannot open shared object file: No such file or directory), /opt/apache2/php/lib/php/extensions/no-debug-zts-20190902/imagick.so.so (/opt/apache2/php/lib/php/extensions/no-debug-zts-20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (2%)
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'gd' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/gd (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/gd: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/gd.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/gd.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 /usr/local/php/php-7.4.3/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/php/php-7.4.3/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/php/php-7.4.3/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/php/php-7.4.3/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/php/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 013+ PHP Notice: fwrite(): write of 1 bytes failed with errno=32 Broken pipe in /usr/local/php/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc on line 158
1 (2%)
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'amqp.so' (tried: /etc/php/7.4z/lib/php/extensions/no-debug-zts-20190902/amqp.so (/etc/php/7.4z/lib/php/extensions/no-debug-zts-20190902/amqp.so: cannot open shared object file: No such file or directory), /etc/php/7.4z/lib/php/extensions/no-debug-zts-20190902/amqp.so.so (/etc/php/7.4z/lib/php/extensions/no-debug-zts-20190902/amqp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 003+ PHP Warning: fread() expects parameter 1 to be resource, bool given in /home/makeway/workspace/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 12 002- Sending bug48182 003- Sending data over to SSL server in async mode with contents like Hello World 004+ PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /home/makeway/workspace/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 13 005+ 006+ Warning: stream_socket_client(): SSL: Success in /home/makeway/workspace/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9 007+ 008+ Warning: stream_socket_client(): Failed to enable crypto in /home/makeway/workspace/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9 009+ 010+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/makeway/workspace/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9 011+ 012+ Warning: fwrite() expects parameter 1 to be resource, bool given in /home/makeway/workspace/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 13 013+ 014+ Warning: fread() expects parameter 1 to be resource, bool given in /home/makeway/workspace/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
1 (2%)
002+ PHP Warning: Module 'zip' already loaded in Unknown on line 0 003+ PHP Warning: Module 'pcntl' already loaded in Unknown on line 0 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: Connection refused in /usr/local/src/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9 006+ 007+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/src/php-7.4.3/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 /usr/local/src/php-7.4.3/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 /usr/local/src/php-7.4.3/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 /usr/local/src/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 014+ PHP Warning: fread() expects parameter 1 to be resource, bool given in /usr/local/src/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 12
1 (2%)
002+ PHP Warning: Failed loading Zend extension 'opcache.so' (tried: /usr/local/php7/lib/php/extensions/no-debug-zts-20190902/opcache.so (Cannot open "/usr/local/php7/lib/php/extensions/no-debug-zts-20190902/opcache.so"), /usr/local/php7/lib/php/extensions/no-debug-zts-20190902/opcache.so.so (Cannot open "/usr/local/php7/lib/php/extensions/no-debug-zts-20190902/opcache.so.so")) in Unknown on line 0 003+ PHP Warning: PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /usr/local/php7/lib/php/extensions/no-debug-zts-20190902/apcu.so (Cannot open "/usr/local/php7/lib/php/extensions/no-debug-zts-20190902/apcu.so"), /usr/local/php7/lib/php/extensions/no-debug-zts-20190902/apcu.so.so (Cannot open "/usr/local/php7/lib/php/extensions/no-debug-zts-20190902/apcu.so.so")) in Unknown on line 0
1 (2%)
002+ PHP Deprecated: Directive 'track_errors' is deprecated 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 /root/src/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 9 005+ 006+ Warning: stream_socket_client(): Failed to enable crypto in /root/src/php-7.4.3/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/src/php-7.4.3/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/src/php-7.4.3/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/src/php-7.4.3/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 /root/src/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 12
1 (2%)
002+ 003+ Warning: stream_socket_client(): SSL: Success in /www/php-7.4.3/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 /www/php-7.4.3/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 /www/php-7.4.3/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 /www/php-7.4.3/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 /www/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14