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

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

Count Diff
4 (40%)
001+ Warning: openssl_x509_export_to_file(): cannot get cert from parameter 1 in /usr/local/src/php-7.4.21/ext/openssl/tests/CertificateGenerator.inc on line 82 002+ 001- string(0) "" 002- string(12) "hello, world" 003+ Warning: openssl_csr_new(): private key length is too short; it needs to be at least 384 bits, not 0 in /usr/local/src/php-7.4.21/ext/openssl/tests/CertificateGenerator.inc on line 128 004+ 005+ Warning: openssl_csr_new(): Unable to generate a private key in /usr/local/src/php-7.4.21/ext/openssl/tests/CertificateGenerator.inc on line 128 006+ 007+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /usr/local/src/php-7.4.21/ext/openssl/tests/CertificateGenerator.inc on line 132 008+ 009+ Fatal error: Uncaught Exception: Failed to create certificate in /usr/local/src/php-7.4.21/ext/openssl/tests/CertificateGenerator.inc:135 010+ Stack trace: 011+ #0 %s/bug77390.php(107): CertificateGenerator->saveNewCertAsFileWithKey('bug77390', '/usr/local/src/...') 012+ #1 {main} 013+ thrown in /usr/local/src/php-7.4.21/ext/openssl/tests/CertificateGenerator.inc on line 135
1 (10%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:10012 (Connection refused) in /usr/src/software/PHP/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7 002+ 001- string(0) "" 002- string(12) "hello, world" 003+ Warning: stream_set_blocking() expects parameter 1 to be resource, bool given in /usr/src/software/PHP/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 8 004+ 005+ Warning: stream_select(): supplied argument is not a valid stream resource in /usr/src/software/PHP/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 006+ 007+ Warning: stream_select(): No stream arrays were passed in /usr/src/software/PHP/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 008+ 009+ ** ERROR: process timed out **
1 (10%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:10012 (Connection refused) in /scratch/software/PHP/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7 002+ 001- string(0) "" 002- string(12) "hello, world" 003+ Warning: stream_set_blocking() expects parameter 1 to be resource, bool given in /scratch/software/PHP/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 8 004+ 005+ Warning: stream_select(): supplied argument is not a valid stream resource in /scratch/software/PHP/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 006+ 007+ Warning: stream_select(): No stream arrays were passed in /scratch/software/PHP/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 008+ 009+ ** ERROR: process timed out **
1 (10%)
001+ Warning: openssl_x509_export_to_file(): cannot get cert from parameter 1 in /tmp/compiletest/install_data/subdir/php/ext/openssl/tests/CertificateGenerator.inc on line 82 002+ 001- string(0) "" 002- string(12) "hello, world" 003+ Warning: openssl_csr_new(): private key length is too short; it needs to be at least 384 bits, not 0 in /tmp/compiletest/install_data/subdir/php/ext/openssl/tests/CertificateGenerator.inc on line 128 004+ 005+ Warning: openssl_csr_new(): Unable to generate a private key in /tmp/compiletest/install_data/subdir/php/ext/openssl/tests/CertificateGenerator.inc on line 128 006+ 007+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /tmp/compiletest/install_data/subdir/php/ext/openssl/tests/CertificateGenerator.inc on line 132 008+ 009+ Fatal error: Uncaught Exception: Failed to create certificate in /tmp/compiletest/install_data/subdir/php/ext/openssl/tests/CertificateGenerator.inc:135 010+ Stack trace: 011+ #0 %s/bug77390.php(107): CertificateGenerator->saveNewCertAsFileWithKey('bug77390', '/tmp/compiletes...') 012+ #1 {main} 013+ thrown in /tmp/compiletest/install_data/subdir/php/ext/openssl/tests/CertificateGenerator.inc on line 135
1 (10%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'imagick' (tried: /opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick (Cannot open "/opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick"), /opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick.so (Shared object "libMagickWand-7.so.7" not found, required by "imagick.so")) in Unknown on line 0 002+ PHP Warning: PHP Startup: Unable to load dynamic library 'imagick' (tried: /opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick (Cannot open "/opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick"), /opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick.so (Shared object "libMagickWand-7.so.7" not found, required by "imagick.so")) in Unknown on line 0 003+ PHP Warning: Module 'zip' already loaded in Unknown on line 0 004+ PHP Warning: PHP Startup: Unable to load dynamic library 'imagick' (tried: /opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick (Cannot open "/opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick"), /opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick.so (Shared object "libMagickWand-7.so.7" not found, required by "imagick.so")) in Unknown on line 0 005+ PHP Warning: PHP Startup: Unable to load dynamic library 'imagick' (tried: /opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick (Cannot open "/opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick"), /opt/php74/usr/lib64/extensions/debug-non-zts-20190902/imagick.so (Shared object "libMagickWand-7.so.7" not found, required by "imagick.so")) in Unknown on line 0 006+ PHP Warning: Module 'zip' already loaded in Unknown on line 0
1 (10%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.so' (tried: /usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.so (/usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902//usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so (/usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902//usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/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 '/usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.so' (tried: /usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.so (/usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902//usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so (/usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902//usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.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: Unable to load dynamic library '/usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.so' (tried: /usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.so (/usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902//usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so (/usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902//usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.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/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.so' (tried: /usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.so (/usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902//usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so (/usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902//usr/local/php7421/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 005+ 006+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:10012 (Connection refused) in /root/php74/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 7 007+ 008+ Warning: stream_set_blocking() expects parameter 1 to be resource, bool given in /root/php74/php-7.4.21/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 /root/php74/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 011+ 012+ Warning: stream_select(): No stream arrays were passed in /root/php74/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14 013+ PHP Warning: stream_socket_accept(): accept failed: Connection timed out in /root/php74/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10 014+ PHP Warning: stream_set_blocking() expects parameter 1 to be resource, bool given in /root/php74/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 015+ PHP Warning: stream_select(): supplied argument is not a valid stream resource in /root/php74/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 14 016+ PHP Warning: stream_select(): supplied argument is not a valid stream resource in /root/php74/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 14 017+ PHP Warning: stream_socket_accept(): SSL: Handshake timed out in /root/php74/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7 018+ PHP Warning: stream_select(): supplied argument is not a valid stream resource in /root/php74/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 14 019+ PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /root/php74/php-7.4.21/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 27
1 (10%)
001+ ** ERROR: process timed out ** 001- string(0) "" 002- string(12) "hello, world"