Test: /ext/openssl/tests/bug46127.phpt - Version 7.4.3        

Bug #46127 [PATCH] php_openssl_tcp_sockop_accept forgets to set context on accepted stream
Submitted: 2008-09-19 15:50:36 Modified: 2008-11-16 23:23:38
From: mark Assigned: pajoye
Status: Closed Package: OpenSSL related
PHP Version: 5.3CVS-2008-11-11 OS: *

There are 33 different diffs reported by users for this test.

Count Diff
3 (7%)
001+ Zend OPcache requires Zend Engine API version 320180731. 002+ The Zend Engine API version 320190902 which is installed, is newer. 003+ Contact Zend Technologies at http://www.zend.com/ for a later version of Zend OPcache. 004+
3 (7%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /usr/src/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 001- Sending bug 46127 002+ 003+ Warning: stream_socket_client(): Failed to enable crypto in /usr/src/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 004+ 005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/src/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 006+ 007+ Warning: fgets() expects parameter 1 to be resource, bool given in /usr/src/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
2 (5%)
001+ Warning: stream_socket_client(): SSL: Success in /root/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 001- Sending bug 46127 002+ 003+ Warning: stream_socket_client(): Failed to enable crypto in /root/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 004+ 005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /root/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 006+ 007+ Warning: fgets() expects parameter 1 to be resource, bool given in /root/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
2 (5%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /home/ubuntu/php-src-php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 001- Sending bug 46127 002+ 003+ Warning: stream_socket_client(): Failed to enable crypto in /home/ubuntu/php-src-php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 004+ 005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/ubuntu/php-src-php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 006+ 007+ Warning: fgets() expects parameter 1 to be resource, bool given in /home/ubuntu/php-src-php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
2 (5%)
001+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/root/php-7.4.3/ext/openssl/tests/bug46127.pem.tmp'; Check that your cafile/capath settings include details of your certificate and its issuer in /root/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10 001- Sending bug 46127 002+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /root/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10 003+ PHP Warning: stream_socket_accept(): accept failed: Success in /root/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10 004+ PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /root/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 005+ 006+ Warning: stream_socket_client(): SSL: Success in /root/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 007+ 008+ Warning: stream_socket_client(): Failed to enable crypto in /root/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 009+ 010+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /root/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 011+ 012+ Warning: fgets() expects parameter 1 to be resource, bool given in /root/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
2 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'pgsql' (tried: /opt/Apache74/lib/extensions/no-debug-zts-20190902/pgsql (/opt/Apache74/lib/extensions/no-debug-zts-20190902/pgsql: cannot open shared object file: No such file or directory), /opt/Apache74/lib/extensions/no-debug-zts-20190902/pgsql.so (/opt/Apache74/lib/extensions/no-debug-zts-20190902/pgsql.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 002+ PHP Warning: Module 'sodium' already loaded in Unknown on line 0 003+ PHP Warning: Module 'gmagick' already loaded in Unknown on line 0 004+ PHP Warning: Module 'grpc' already loaded in Unknown on line 0
1 (2%)
001+ Warning: stream_socket_client(): SSL: Success in /www/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 001- Sending bug 46127 002+ 003+ Warning: stream_socket_client(): Failed to enable crypto in /www/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 004+ 005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /www/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 006+ 007+ Warning: fgets() expects parameter 1 to be resource, bool given in /www/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (2%)
001+ Warning: stream_socket_client(): SSL: Success in /usr/src/httpd-2.4.41/requirements/php/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 001- Sending bug 46127 002+ 003+ Warning: stream_socket_client(): Failed to enable crypto in /usr/src/httpd-2.4.41/requirements/php/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 004+ 005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/src/httpd-2.4.41/requirements/php/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 006+ 007+ Warning: fgets() expects parameter 1 to be resource, bool given in /usr/src/httpd-2.4.41/requirements/php/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (2%)
001+ Warning: stream_socket_client(): SSL: Success in /usr/local/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 001- Sending bug 46127 002+ 003+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 004+ 005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/local/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 006+ 007+ Warning: fgets() expects parameter 1 to be resource, bool given in /usr/local/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (2%)
001+ Warning: stream_socket_client(): SSL: Success in /tmp/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 001- Sending bug 46127 002+ 003+ Warning: stream_socket_client(): Failed to enable crypto in /tmp/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 004+ 005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /tmp/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 006+ 007+ Warning: fgets() expects parameter 1 to be resource, bool given in /tmp/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (2%)
001+ Warning: stream_socket_client(): SSL: Success in /root/compile/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 001- Sending bug 46127 002+ 003+ Warning: stream_socket_client(): Failed to enable crypto in /root/compile/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 004+ 005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /root/compile/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 006+ 007+ Warning: fgets() expects parameter 1 to be resource, bool given in /root/compile/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (2%)
001+ Warning: stream_socket_client(): SSL: Success in /home/ning/php/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 001- Sending bug 46127 002+ 003+ Warning: stream_socket_client(): Failed to enable crypto in /home/ning/php/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 004+ 005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/ning/php/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 006+ 007+ Warning: fgets() expects parameter 1 to be resource, bool given in /home/ning/php/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (2%)
001+ Warning: stream_socket_client(): SSL: Success in /etc/php/7.4.3/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 001- Sending bug 46127 002+ 003+ Warning: stream_socket_client(): Failed to enable crypto in /etc/php/7.4.3/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 004+ 005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /etc/php/7.4.3/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 006+ 007+ Warning: fgets() expects parameter 1 to be resource, bool given in /etc/php/7.4.3/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (2%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /usr/local/php/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 001- Sending bug 46127 002+ 003+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/php/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 004+ 005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/local/php/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 006+ 007+ Warning: fgets() expects parameter 1 to be resource, bool given in /usr/local/php/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (2%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /tmp/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 001- Sending bug 46127 002+ 003+ Warning: stream_socket_client(): Failed to enable crypto in /tmp/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 004+ 005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /tmp/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 006+ 007+ Warning: fgets() expects parameter 1 to be resource, bool given in /tmp/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (2%)
001+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: 001- Sending bug 46127 002+ error:14095126:SSL routines:ssl3_read_n:unexpected eof while reading in /usr/src/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 003+ 004+ Warning: stream_socket_client(): Failed to enable crypto in /usr/src/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 005+ 006+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/src/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 007+ 008+ Warning: fgets() expects parameter 1 to be resource, bool given in /usr/src/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (2%)
001+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /soft/php-7.4.3/ext/openssl/tests/CertificateGenerator.inc on line 100 001- Sending bug 46127 002+ 003+ Warning: openssl_x509_export(): cannot get cert from parameter 1 in /soft/php-7.4.3/ext/openssl/tests/CertificateGenerator.inc on line 104 004+ 005+ Warning: openssl_pkey_export(): cannot get key from parameter 1 in /soft/php-7.4.3/ext/openssl/tests/CertificateGenerator.inc on line 107 006+ 007+ Warning: stream_socket_client(): Failed to enable crypto in /soft/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 008+ 009+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /soft/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 010+ 011+ Warning: fgets() expects parameter 1 to be resource, bool given in /soft/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (2%)
001+ Warning: openssl_csr_new(): Error loading request_extensions_section section v3_req of /home/baptiste/mfext/build/opt/core/etc/ssl/openssl.cnf in /home/baptiste/mfextaddon_php/src/layers/layer1_php/0010_php/build/php-7.4.3/ext/openssl/tests/CertificateGenerator.inc on line 97 001- Sending bug 46127 002+ 003+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /home/baptiste/mfextaddon_php/src/layers/layer1_php/0010_php/build/php-7.4.3/ext/openssl/tests/CertificateGenerator.inc on line 100 004+ 005+ Warning: openssl_x509_export(): cannot get cert from parameter 1 in /home/baptiste/mfextaddon_php/src/layers/layer1_php/0010_php/build/php-7.4.3/ext/openssl/tests/CertificateGenerator.inc on line 104 006+ 007+ Warning: stream_socket_client(): SSL: Connection reset by peer in /home/baptiste/mfextaddon_php/src/layers/layer1_php/0010_php/build/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 008+ 009+ Warning: stream_socket_client(): Failed to enable crypto in /home/baptiste/mfextaddon_php/src/layers/layer1_php/0010_php/build/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 010+ 011+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /home/baptiste/mfextaddon_php/src/layers/layer1_php/0010_php/build/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 012+ 013+ Warning: fgets() expects parameter 1 to be resource, bool given in /home/baptiste/mfextaddon_php/src/layers/layer1_php/0010_php/build/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (2%)
001+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/usr/src/httpd/requirements/php/ext/openssl/tests/bug46127.pem.tmp'; Check that your cafile/capath settings include details of your certificate and its issuer in /usr/src/httpd/requirements/php/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10 001- Sending bug 46127 002+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /usr/src/httpd/requirements/php/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10 003+ PHP Warning: stream_socket_accept(): accept failed: Success in /usr/src/httpd/requirements/php/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10 004+ PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /usr/src/httpd/requirements/php/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 005+ 006+ Warning: stream_socket_client(): SSL: Success in /usr/src/httpd/requirements/php/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 007+ 008+ Warning: stream_socket_client(): Failed to enable crypto in /usr/src/httpd/requirements/php/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 009+ 010+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/src/httpd/requirements/php/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 011+ 012+ Warning: fgets() expects parameter 1 to be resource, bool given in /usr/src/httpd/requirements/php/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (2%)
001+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/usr/local/lsws/phpbuild/php-7.4.3/ext/openssl/tests/bug46127.pem.tmp'; Check that your cafile/capath settings include details of your certificate and its issuer in /usr/local/lsws/phpbuild/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10 001- Sending bug 46127 002+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /usr/local/lsws/phpbuild/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10 003+ 004+ Warning: stream_socket_client(): SSL: Connection reset by peer in /usr/local/lsws/phpbuild/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 005+ 006+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/lsws/phpbuild/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 007+ 008+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/local/lsws/phpbuild/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 009+ 010+ Warning: fgets() expects parameter 1 to be resource, bool given in /usr/local/lsws/phpbuild/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12 011+ PHP Warning: stream_socket_accept(): accept failed: Success in /usr/local/lsws/phpbuild/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10 012+ PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /usr/local/lsws/phpbuild/php-7.4.3/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11
1 (2%)
001+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/root/php-7.4.4/ext/openssl/tests/bug46127.pem.tmp'; Check that your cafile/capath settings include details of your certificate and its issuer in /root/php-7.4.4/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10 001- Sending bug 46127 002+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /root/php-7.4.4/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10 003+ PHP Warning: stream_socket_accept(): accept failed: Success in /root/php-7.4.4/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10 004+ PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /root/php-7.4.4/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11 005+ 006+ Warning: stream_socket_client(): SSL: Success in /root/php-7.4.4/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 007+ 008+ Warning: stream_socket_client(): Failed to enable crypto in /root/php-7.4.4/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 009+ 010+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /root/php-7.4.4/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10 011+ 012+ Warning: fgets() expects parameter 1 to be resource, bool given in /root/php-7.4.4/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12