Test: /ext/openssl/tests/bug77390.phpt - Version 7.3.23        

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

Count Diff
9 (53%)
001+ ** ERROR: process timed out **
001- string(0) ""
002- string(12) "hello, world"
2 (12%)
003+ Segmentation fault
004+ Segmentation fault
1 (6%)
001+ Failed loading /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/opcache.so: /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/opcache.so: undefined symbol: _zval_ptr_dtor
002+ Failed loading /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/opcache.so: /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/opcache.so: undefined symbol: _zval_ptr_dtor
1 (6%)
001+ PHP Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0PHP Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
002+
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/paolini/pkg/php-7.3.23/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/paolini/pkg/php-7.3.23/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/paolini/pkg/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
009+
010+ Warning: stream_select(): No stream arrays were passed in /home/paolini/pkg/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
011+
012+ ** ERROR: process timed out **
1 (6%)
001+ PHP Warning: Failed loading Zend extension 'opcache.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/opcache.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/opcache.so: undefined symbol: php_pcre_free), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/opcache.so.so (/usr/local/php/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+ PHP Warning: Failed loading Zend extension 'opcache.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/opcache.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/opcache.so: undefined symbol: php_pcre_free), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/opcache.so.so (/usr/local/php/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
001- string(0) ""
002- string(12) "hello, world"
003+ PHP Warning: PHP Startup: bcmath: Unable to initialize module
004+ Module compiled with module API=20170718
005+ PHP compiled with module API=20180731
006+ These options need to match
007+ in Unknown on line 0
008+ PHP Warning: PHP Startup: bcmath: Unable to initialize module
009+ Module compiled with module API=20170718
010+ PHP compiled with module API=20180731
011+ These options need to match
012+ in Unknown on line 0
013+ PHP Warning: PHP Startup: ftp: Unable to initialize module
014+ Module compiled with module API=20170718
015+ PHP compiled with module API=20180731
016+ These options need to match
017+ in Unknown on line 0
018+ PHP Warning: PHP Startup: ftp: Unable to initialize module
019+ Module compiled with module API=20170718
020+ PHP compiled with module API=20180731
021+ These options need to match
022+ in Unknown on line 0
023+ PHP Warning: PHP Startup: gd: Unable to initialize module
024+ Module compiled with module API=20170718
025+ PHP compiled with module API=20180731
026+ These options need to match
027+ in Unknown on line 0
028+ PHP Warning: PHP Startup: gd: Unable to initialize module
029+ Module compiled with module API=20170718
030+ PHP compiled with module API=20180731
031+ These options need to match
032+ in Unknown on line 0
033+ PHP Warning: PHP Startup: gmp: Unable to initialize module
034+ Module compiled with module API=20170718
035+ PHP compiled with module API=20180731
036+ These options need to match
037+ in Unknown on line 0
038+ PHP Warning: PHP Startup: gmp: Unable to initialize module
039+ Module compiled with module API=20170718
040+ PHP compiled with module API=20180731
041+ These options need to match
042+ in Unknown on line 0
043+ PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/imagick.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/imagick.so: undefined symbol: _zval_ptr_dtor), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/imagick.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
044+ PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/imagick.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/imagick.so: undefined symbol: _zval_ptr_dtor), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/imagick.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
045+ PHP Warning: PHP Startup: Unable to load dynamic library 'intl.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/intl.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/intl.so: undefined symbol: _zval_ptr_dtor), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/intl.so.so (/usr/local/php/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
046+ PHP Warning: PHP Startup: Unable to load dynamic library 'intl.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/intl.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/intl.so: undefined symbol: _zval_ptr_dtor), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/intl.so.so (/usr/local/php/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
047+ PHP Warning: PHP Startup: redis: Unable to initialize module
048+ Module compiled with module API=20170718
049+ PHP compiled with module API=20180731
050+ These options need to match
051+ in Unknown on line 0
052+ PHP Warning: PHP Startup: redis: Unable to initialize module
053+ Module compiled with module API=20170718
054+ PHP compiled with module API=20180731
055+ These options need to match
056+ in Unknown on line 0
057+ string(0) ""
058+ string(12) "hello, world"
1 (6%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'zip.so' (tried: /usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/zip.so (/usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/zip.so: cannot open shared object file: No such file or directory), /usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/zip.so.so (/usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/zip.so.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 'zip.so' (tried: /usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/zip.so (/usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/zip.so: cannot open shared object file: No such file or directory), /usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/zip.so.so (/usr/local/php7/lib/php/extensions/no-debug-non-zts-20180731/zip.so.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 /usr/src/php7/php-7.3.23/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 /usr/src/php7/php-7.3.23/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 /usr/src/php7/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
009+
010+ Warning: stream_select(): No stream arrays were passed in /usr/src/php7/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
011+ PHP Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1:10011 (Connection refused) in /usr/src/php7/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 3
012+ PHP Warning: stream_set_blocking() expects parameter 1 to be resource, bool given in /usr/src/php7/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 4
013+
014+ ** ERROR: process timed out **
1 (6%)
001+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/usr/local/src/php7source/php-7.3.23/ext/openssl/tests/bug77390.pem.tmp'; Check that your cafile/capath settings include details of your certificate and its issuer in /usr/local/src/php7source/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
002+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /usr/local/src/php7source/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
001- string(0) ""
002- string(12) "hello, world"
003+ PHP Warning: stream_socket_accept(): accept failed: Success in /usr/local/src/php7source/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
004+ PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /usr/local/src/php7source/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 8
005+
006+ ** ERROR: process timed out **
1 (6%)
001+ PHP Warning: stream_socket_server(): unable to connect to ssl://127.0.0.1:10011 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /home/try/src/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 4
002+ PHP Warning: stream_socket_accept() expects parameter 1 to be resource, bool given in /home/try/src/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
001- string(0) ""
002- string(12) "hello, world"
003+ PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /home/try/src/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 8
004+ PHP Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1:10011 (Connection refused) in /home/try/src/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 3
005+ PHP Warning: stream_set_blocking() expects parameter 1 to be resource, bool given in /home/try/src/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 4
006+ PHP Warning: stream_select(): supplied argument is not a valid stream resource in /home/try/src/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 14
007+ PHP Warning: stream_select(): supplied argument is not a valid stream resource in /home/try/src/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 14
008+ PHP Warning: stream_select(): supplied argument is not a valid stream resource in /home/try/src/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 14
009+ PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /home/try/src/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 18
010+ PHP Warning: feof() expects parameter 1 to be resource, bool given in /home/try/src/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 31
011+ PHP Warning: stream_select(): supplied argument is not a valid stream resource in /home/try/src/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 14
012+ PHP Warning: stream_select(): supplied argument is not a valid stream resource in /home/try/src/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 14
013+ PHP Warning: stream_select(): supplied argument is not a valid stream resource in /home/try/src/php-7.3.23/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 14
014+
015+ ** ERROR: process timed out **