Test: /ext/openssl/tests/bug77390.phpt - Version 8.0.0-dev        

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

Count Diff
18 (46%)
001- string(0) ""
9 (23%)
001+ ** ERROR: process timed out ** 001- string(0) "" 002- string(12) "hello, world"
4 (10%)
001+ ** ERROR: process timed out **
001- string(0) ""
002- string(12) "hello, world"
1 (3%)
001+ Xdebug requires Zend Engine API version 320180731.
002+ The Zend Engine API version 420190128 which is installed, is newer.
003+ Contact Derick Rethans at https://xdebug.org/docs/faq#api for a later version of Xdebug.
004+
005+ Xdebug requires Zend Engine API version 320180731.
006+ The Zend Engine API version 420190128 which is installed, is newer.
007+ Contact Derick Rethans at https://xdebug.org/docs/faq#api for a later version of Xdebug.
008+
1 (3%)
001+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: 002+ error:1408F10B:SSL routines:ssl3_get_record:wrong version number in /home/github/php8/php-src/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 /home/github/php8/php-src/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 /home/github/php8/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7 007+ 008+ Fatal error: Uncaught TypeError: stream_set_blocking(): Argument #1 ($stream) must be of type resource, bool given in /home/github/php8/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code:8 009+ Stack trace: 010+ #0 /home/github/php8/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code(8): stream_set_blocking(false, false) 011+ #1 /home/github/php8/php-src/ext/openssl/tests/ServerClientTestCase.inc(130): eval() 012+ #2 %s/bug77390.php(112): ServerClientTestCase->run(' $context = ...', Array) 013+ #3 {main} 014+ thrown in /home/github/php8/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 8
1 (3%)
001+ Warning: openssl_x509_export_to_file(): Cannot get cert from parameter 1 in /home/max/dev/php/ext/openssl/tests/CertificateGenerator.inc on line 82 002+ 001- string(0) "" 002- string(12) "hello, world" 003+ Warning: openssl_csr_sign(): Cannot get CSR from parameter 1 in /home/max/dev/php/ext/openssl/tests/CertificateGenerator.inc on line 100 004+ 005+ Warning: openssl_x509_export(): Cannot get cert from parameter 1 in /home/max/dev/php/ext/openssl/tests/CertificateGenerator.inc on line 104 006+ 007+ Warning: openssl_pkey_export(): Cannot get key from parameter 1 in /home/max/dev/php/ext/openssl/tests/CertificateGenerator.inc on line 107 008+ 009+ ** ERROR: process timed out **
1 (3%)
001+ Segmentation fault (core dumped) 002+ Segmentation fault (core dumped) 001- string(0) "" 002- string(12) "hello, world" 003+ 004+ Notice: fwrite(): Write of 1 bytes failed with errno=32 Broken pipe in /home/xsensiolabs/Projects/php-src/ext/openssl/tests/ServerClientTestCase.inc on line 158 005+ 006+ Warning: stream_socket_client(): Unable to connect to ssl://127.0.0.1:10012 (Connection refused) in /home/xsensiolabs/Projects/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7 007+ 008+ Fatal error: Uncaught TypeError: stream_set_blocking(): Argument #1 ($stream) must be of type resource, bool given in /home/xsensiolabs/Projects/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code:8 009+ Stack trace: 010+ #0 /home/xsensiolabs/Projects/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code(8): stream_set_blocking(false, false) 011+ #1 /home/xsensiolabs/Projects/php-src/ext/openssl/tests/ServerClientTestCase.inc(130): eval() 012+ #2 %s/bug77390.php(112): ServerClientTestCase->run(' $context = ...', Array) 013+ #3 {main} 014+ thrown in /home/xsensiolabs/Projects/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 8
1 (3%)
001+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/usr/local/src/php/php-src-jit-dynasm/ext/openssl/tests/bug77390.pem.tmp'; Check that your cafile/capath settings include details of your certificate and its issuer in /usr/local/src/php/php-src-jit-dynasm/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/php/php-src-jit-dynasm/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/php/php-src-jit-dynasm/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
004+ PHP Fatal error: Uncaught TypeError: fwrite() expects parameter 1 to be resource, bool given in /usr/local/src/php/php-src-jit-dynasm/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code:8
005+ Stack trace:
006+ #0 /usr/local/src/php/php-src-jit-dynasm/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code(8): fwrite(false, 'warmup')
007+ #1 /usr/local/src/php/php-src-jit-dynasm/ext/openssl/tests/ServerClientTestCase.inc(119): eval()
008+ #2 /usr/local/src/php/php-src-jit-dynasm/ext/openssl/tests/ServerClientTestCase.inc(163): ServerClientTestCase->runWorker()
009+ #3 {main}
010+ thrown in /usr/local/src/php/php-src-jit-dynasm/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 8
011+
012+ ** ERROR: process timed out **
1 (3%)
001+ PHP Warning: PHP Startup: gd: Unable to initialize module 002+ Module compiled with module API=20100525 003+ PHP compiled with module API=20190128 004+ These options need to match 005+ in Unknown on line 0 006+ PHP Warning: PHP Startup: gd: Unable to initialize module 007+ Module compiled with module API=20100525 008+ PHP compiled with module API=20190128 009+ These options need to match 010+ in Unknown on line 0
1 (3%)
001+ PHP Warning: PHP Startup: Invalid library (appears to be a Zend Extension, try loading using zend_extension=opcache.so from php.ini) in Unknown on line 0 002+ PHP Warning: PHP Startup: Invalid library (appears to be a Zend Extension, try loading using zend_extension=opcache.so from php.ini) 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 /root/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7 005+ 006+ Fatal error: Uncaught TypeError: stream_set_blocking(): Argument #1 ($stream) must be of type resource, bool given in /root/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code:8 007+ Stack trace: 008+ #0 /root/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code(8): stream_set_blocking(false, false) 009+ #1 /root/php-src/ext/openssl/tests/ServerClientTestCase.inc(130): eval() 010+ #2 %s/bug77390.php(112): ServerClientTestCase->run(' $context = ...', Array) 011+ #3 {main} 012+ thrown in /root/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 8
1 (3%)
001+ PHP Warning: Failed loading Zend extension 'opcache.so' (tried: /etc/php7/lib/php/extensions/debug-non-zts-20190128/opcache.so (/etc/php7/lib/php/extensions/debug-non-zts-20190128/opcache.so: cannot open shared object file: No such file or directory), /etc/php7/lib/php/extensions/debug-non-zts-20190128/opcache.so.so (/etc/php7/lib/php/extensions/debug-non-zts-20190128/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: /etc/php7/lib/php/extensions/debug-non-zts-20190128/opcache.so (/etc/php7/lib/php/extensions/debug-non-zts-20190128/opcache.so: cannot open shared object file: No such file or directory), /etc/php7/lib/php/extensions/debug-non-zts-20190128/opcache.so.so (/etc/php7/lib/php/extensions/debug-non-zts-20190128/opcache.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 'pthreads.so' (tried: /etc/php7/lib/php/extensions/debug-non-zts-20190128/pthreads.so (/etc/php7/lib/php/extensions/debug-non-zts-20190128/pthreads.so: cannot open shared object file: No such file or directory), /etc/php7/lib/php/extensions/debug-non-zts-20190128/pthreads.so.so (/etc/php7/lib/php/extensions/debug-non-zts-20190128/pthreads.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 'pthreads.so' (tried: /etc/php7/lib/php/extensions/debug-non-zts-20190128/pthreads.so (/etc/php7/lib/php/extensions/debug-non-zts-20190128/pthreads.so: cannot open shared object file: No such file or directory), /etc/php7/lib/php/extensions/debug-non-zts-20190128/pthreads.so.so (/etc/php7/lib/php/extensions/debug-non-zts-20190128/pthreads.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0