Test: /ext/openssl/tests/bug77390.phpt - Version 7.4.0alpha2        

Bug #77390 feof might hang on TLS streams in case of fragmented TLS records
Submitted: 2018-12-31 15:53:30 Modified: 2019-01-17 18:15:52
From: kelunik Assigned: bukka
Status: Closed Package: OpenSSL related
PHP Version: 7.2.13 OS:

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

Count Diff
2 (40%)
001+ ** ERROR: process timed out **
001- string(0) ""
002- string(12) "hello, world"
1 (20%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'parallel' (tried: /opt/php-zts/lib/php/extensions/debug-zts-20190529/parallel (/opt/php-zts/lib/php/extensions/debug-zts-20190529/parallel: cannot open shared object file: No such file or directory), /opt/php-zts/lib/php/extensions/debug-zts-20190529/parallel.so (/opt/php-zts/lib/php/extensions/debug-zts-20190529/parallel.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'parallel' (tried: /opt/php-zts/lib/php/extensions/debug-zts-20190529/parallel (/opt/php-zts/lib/php/extensions/debug-zts-20190529/parallel: cannot open shared object file: No such file or directory), /opt/php-zts/lib/php/extensions/debug-zts-20190529/parallel.so (/opt/php-zts/lib/php/extensions/debug-zts-20190529/parallel.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
001- string(0) ""
002- string(12) "hello, world"
003+
004+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:10012 (Connection refused) in /opt/php.net-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7
005+
006+ Warning: stream_set_blocking() expects parameter 1 to be resource, bool given in /opt/php.net-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 8
007+
008+ Warning: stream_select(): supplied argument is not a valid stream resource in /opt/php.net-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
009+
010+ Warning: stream_select(): No stream arrays were passed in /opt/php.net-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
011+ PHP Warning: stream_socket_accept(): accept failed: Connection timed out in /opt/php.net-src/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10
012+ PHP Warning: stream_set_blocking() expects parameter 1 to be resource, bool given in /opt/php.net-src/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11
013+ PHP Warning: stream_select(): supplied argument is not a valid stream resource in /opt/php.net-src/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 14
014+ PHP Warning: stream_select(): supplied argument is not a valid stream resource in /opt/php.net-src/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 14
015+ PHP Warning: stream_socket_accept(): SSL: Handshake timed out in /opt/php.net-src/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
016+ PHP Warning: stream_select(): supplied argument is not a valid stream resource in /opt/php.net-src/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 14
017+ PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /opt/php.net-src/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 27
1 (20%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'parallel' (tried: /opt/php-zts/lib/php/extensions/debug-zts-20190529/parallel (/opt/php-zts/lib/php/extensions/debug-zts-20190529/parallel: cannot open shared object file: No such file or directory), /opt/php-zts/lib/php/extensions/debug-zts-20190529/parallel.so (/opt/php-zts/lib/php/extensions/debug-zts-20190529/parallel.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'parallel' (tried: /opt/php-zts/lib/php/extensions/debug-zts-20190529/parallel (/opt/php-zts/lib/php/extensions/debug-zts-20190529/parallel: cannot open shared object file: No such file or directory), /opt/php-zts/lib/php/extensions/debug-zts-20190529/parallel.so (/opt/php-zts/lib/php/extensions/debug-zts-20190529/parallel.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
001- string(0) ""
002- string(12) "hello, world"
003+
004+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:10012 (Connection refused) in /opt/php.net-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7
005+
006+ Warning: stream_set_blocking() expects parameter 1 to be resource, bool given in /opt/php.net-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 8
007+
008+ Warning: stream_select(): supplied argument is not a valid stream resource in /opt/php.net-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
009+
010+ Warning: stream_select(): No stream arrays were passed in /opt/php.net-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
011+
012+ ** ERROR: process timed out **
1 (20%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'oauth' (tried: /home/andres/apps/php/lib/php/extensions/no-debug-non-zts-20190529/oauth (/home/andres/apps/php/lib/php/extensions/no-debug-non-zts-20190529/oauth: cannot open shared object file: No such file or directory), /home/andres/apps/php/lib/php/extensions/no-debug-non-zts-20190529/oauth.so (/home/andres/apps/php/lib/php/extensions/no-debug-non-zts-20190529/oauth.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'oauth' (tried: /home/andres/apps/php/lib/php/extensions/no-debug-non-zts-20190529/oauth (/home/andres/apps/php/lib/php/extensions/no-debug-non-zts-20190529/oauth: cannot open shared object file: No such file or directory), /home/andres/apps/php/lib/php/extensions/no-debug-non-zts-20190529/oauth.so (/home/andres/apps/php/lib/php/extensions/no-debug-non-zts-20190529/oauth.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
001- string(0) ""
002- string(12) "hello, world"
003+
004+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:10012 (Connection refused) in /home/andres/Descargas/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7
005+
006+ Warning: stream_set_blocking() expects parameter 1 to be resource, bool given in /home/andres/Descargas/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 8
007+
008+ Warning: stream_select(): supplied argument is not a valid stream resource in /home/andres/Descargas/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
009+
010+ Warning: stream_select(): No stream arrays were passed in /home/andres/Descargas/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
011+
012+ ** ERROR: process timed out **