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

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

Count Diff
6 (55%)
001+ ** ERROR: process timed out **
001- string(0) ""
002- string(12) "hello, world"
1 (9%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:10012 (Connection refused) in /usr/local/src/php-7.2.22/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, boolean given in /usr/local/src/php-7.2.22/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/local/src/php-7.2.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
006+
007+ Warning: stream_select(): No stream arrays were passed in /usr/local/src/php-7.2.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
008+
009+ ** ERROR: process timed out **
1 (9%)
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 /usr/local/src/php7.2-build/php-7.2.22/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/php7.2-build/php-7.2.22/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/php7.2-build/php-7.2.22/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/php7.2-build/php-7.2.22/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/php7.2-build/php-7.2.22/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/php7.2-build/php-7.2.22/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 14
013+
014+ ** ERROR: process timed out **
1 (9%)
001+ Warning: openssl_x509_export_to_file(): cannot get cert from parameter 1 in /root/compile/php-7.2.22/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 /root/compile/php-7.2.22/ext/openssl/tests/CertificateGenerator.inc on line 100
004+
005+ Warning: openssl_x509_export(): cannot get cert from parameter 1 in /root/compile/php-7.2.22/ext/openssl/tests/CertificateGenerator.inc on line 104
006+
007+ Warning: openssl_pkey_export(): cannot get key from parameter 1 in /root/compile/php-7.2.22/ext/openssl/tests/CertificateGenerator.inc on line 107
008+
009+ ** ERROR: process timed out **
1 (9%)
001+ Warning: openssl_csr_new(): Error loading request_extensions_section section v3_req of /etc/ssl/openssl.cnf in /home/storage/deployment/compiles/php-7.2.22/ext/openssl/tests/CertificateGenerator.inc on line 97
002+
001- string(0) ""
002- string(12) "hello, world"
003+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /home/storage/deployment/compiles/php-7.2.22/ext/openssl/tests/CertificateGenerator.inc on line 100
004+
005+ Warning: openssl_x509_export(): cannot get cert from parameter 1 in /home/storage/deployment/compiles/php-7.2.22/ext/openssl/tests/CertificateGenerator.inc on line 104
006+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/home/storage/deployment/compiles/php-7.2.22/ext/openssl/tests/bug77390.pem.tmp'; Check that your cafile/capath settings include details of your certificate and its issuer in /home/storage/deployment/compiles/php-7.2.22/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
007+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /home/storage/deployment/compiles/php-7.2.22/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
008+ PHP Warning: stream_socket_accept(): accept failed: Success in /home/storage/deployment/compiles/php-7.2.22/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
009+ PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/storage/deployment/compiles/php-7.2.22/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 8
010+
011+ ** ERROR: process timed out **
1 (9%)
001+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/home/andres/Descargas/php-src/ext/openssl/tests/bug77390.pem.tmp'; Check that your cafile/capath settings include details of your certificate and its issuer in /home/andres/Descargas/php-src/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
002+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /home/andres/Descargas/php-src/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 /home/andres/Descargas/php-src/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 /home/andres/Descargas/php-src/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 8
005+
006+ ** ERROR: process timed out **