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

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

Count Diff
337 (95%)
001+ ** ERROR: process timed out **
001- string(0) ""
002- string(12) "hello, world"
7 (2%)
001+ Warning: openssl_csr_new(): Error signing request in /usr/local/src/php-7.2.34-sdv/ext/openssl/tests/CertificateGenerator.inc on line 62
002+
001- string(0) ""
002- string(12) "hello, world"
003+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /usr/local/src/php-7.2.34-sdv/ext/openssl/tests/CertificateGenerator.inc on line 68
004+
005+ Warning: openssl_x509_export_to_file(): cannot get cert from parameter 1 in /usr/local/src/php-7.2.34-sdv/ext/openssl/tests/CertificateGenerator.inc on line 82
006+
007+ Warning: openssl_csr_sign(): cannot get cert from parameter 2 in /usr/local/src/php-7.2.34-sdv/ext/openssl/tests/CertificateGenerator.inc on line 100
008+
009+ Warning: openssl_x509_export(): cannot get cert from parameter 1 in /usr/local/src/php-7.2.34-sdv/ext/openssl/tests/CertificateGenerator.inc on line 104
010+
011+ ** ERROR: process timed out **
1 (0%)
001+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
002+ error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol in /usr/local/src/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7
001- string(0) ""
002- string(12) "hello, world"
003+
004+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/src/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7
005+
006+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:10012 (Unknown error) in /usr/local/src/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7
007+
008+ Warning: stream_set_blocking() expects parameter 1 to be resource, boolean given in /usr/local/src/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 8
009+
010+ Warning: stream_select(): supplied argument is not a valid stream resource in /usr/local/src/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
011+
012+ Warning: stream_select(): No stream arrays were passed in /usr/local/src/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
1 (0%)
001+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/root/php-7.2.34/ext/openssl/tests/bug77390.pem.tmp'; Check that your cafile/capath settings include details of your certificate and its issuer in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
002+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /root/php-7.2.34/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 /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
004+ PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 8
005+
006+ ** ERROR: process timed out **
1 (0%)
001+ PHP Warning: PHP Startup: tokenizer: Unable to initialize module
002+ Module compiled with module API=20151012
001- string(0) ""
002- string(12) "hello, world"
003+ PHP compiled with module API=20170718
004+ These options need to match
005+ in Unknown on line 0
006+ PHP Warning: PHP Startup: memcache: Unable to initialize module
007+ Module compiled with module API=20151012
008+ PHP compiled with module API=20170718
009+ These options need to match
010+ in Unknown on line 0
011+ PHP Warning: PHP Startup: tokenizer: Unable to initialize module
012+ Module compiled with module API=20151012
013+ PHP compiled with module API=20170718
014+ These options need to match
015+ in Unknown on line 0
016+ PHP Warning: PHP Startup: memcache: Unable to initialize module
017+ Module compiled with module API=20151012
018+ PHP compiled with module API=20170718
019+ These options need to match
020+ in Unknown on line 0
021+ PHP Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
022+ PHP Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
023+ string(0) ""
024+ string(12) "hello, world"
1 (0%)
001+ PHP Warning: PHP Startup: tokenizer: Unable to initialize module
002+ Module compiled with module API=20151012
001- string(0) ""
002- string(12) "hello, world"
003+ PHP compiled with module API=20170718
004+ These options need to match
005+ in Unknown on line 0
006+ PHP Warning: PHP Startup: memcache: Unable to initialize module
007+ Module compiled with module API=20151012
008+ PHP compiled with module API=20170718
009+ These options need to match
010+ in Unknown on line 0
011+ PHP Warning: PHP Startup: tokenizer: Unable to initialize module
012+ Module compiled with module API=20151012
013+ PHP compiled with module API=20170718
014+ These options need to match
015+ in Unknown on line 0
016+ PHP Warning: PHP Startup: memcache: Unable to initialize module
017+ Module compiled with module API=20151012
018+ PHP compiled with module API=20170718
019+ These options need to match
020+ in Unknown on line 0
021+ PHP Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
022+ PHP Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
023+
024+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:10012 (Connection refused) in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7
025+
026+ Warning: stream_set_blocking() expects parameter 1 to be resource, boolean given in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 8
027+
028+ Warning: stream_select(): supplied argument is not a valid stream resource in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
029+
030+ Warning: stream_select(): No stream arrays were passed in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
031+ PHP Warning: stream_socket_accept(): accept failed: Connection timed out in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10
032+ PHP Warning: stream_set_blocking() expects parameter 1 to be resource, boolean given in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11
033+ PHP Warning: stream_select(): supplied argument is not a valid stream resource in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 14
034+ PHP Warning: stream_select(): supplied argument is not a valid stream resource in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 14
035+ PHP Warning: stream_socket_accept(): SSL: Handshake timed out in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
036+ PHP Warning: stream_select(): supplied argument is not a valid stream resource in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 14
037+ PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 27
1 (0%)
001+ PHP Warning: PHP Startup: mysql: Unable to initialize module
002+ Module compiled with module API=20131226
003+ PHP compiled with module API=20170718
004+ These options need to match
005+ in Unknown on line 0
006+ PHP Warning: PHP Startup: mysql: Unable to initialize module
007+ Module compiled with module API=20131226
008+ PHP compiled with module API=20170718
009+ These options need to match
010+ in Unknown on line 0
1 (0%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'openssl' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/openssl (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/openssl: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/openssl.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/openssl.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 'openssl' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/openssl (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/openssl: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/openssl.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/openssl.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 /data/home/xgxia/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7
005+
006+ Warning: stream_set_blocking() expects parameter 1 to be resource, boolean given in /data/home/xgxia/php-7.2.34/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 /data/home/xgxia/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
009+
010+ Warning: stream_select(): No stream arrays were passed in /data/home/xgxia/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
011+
012+ ** ERROR: process timed out **
1 (0%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20170718/imagick.so (libMagickWand-6.Q16.so.6: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20170718/imagick.so.so (/usr/local/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
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20170718/imagick.so (libMagickWand-6.Q16.so.6: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20170718/imagick.so.so (/usr/local/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
1 (0%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.so' (tried: /usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.so (/usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.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 '/usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so' (tried: /usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so (/usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so.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 '/usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.so' (tried: /usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.so (/usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
004+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so' (tried: /usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so (/usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (0%)
001+ PHP Warning: Module 'zip' already loaded in Unknown on line 0
002+ PHP Warning: Module 'zip' already loaded 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 /jxd/code/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7
005+
006+ Warning: stream_set_blocking() expects parameter 1 to be resource, boolean given in /jxd/code/php-7.2.34/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 /jxd/code/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
009+
010+ Warning: stream_select(): No stream arrays were passed in /jxd/code/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
011+
012+ ** ERROR: process timed out **
1 (0%)
001+ Failed loading /opt/streamtool/app/php/lib/php/extensions/no-debug-non-zts-20190902/opcache.so: /opt/streamtool/app/php/lib/php/extensions/no-debug-non-zts-20190902/opcache.so: undefined symbol: zend_preload_autoload
002+ Failed loading /opt/streamtool/app/php/lib/php/extensions/no-debug-non-zts-20190902/opcache.so: /opt/streamtool/app/php/lib/php/extensions/no-debug-non-zts-20190902/opcache.so: undefined symbol: zend_preload_autoload
001- string(0) ""
002- string(12) "hello, world"
003+
004+ ** ERROR: process timed out **