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

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

Count Diff
2 (11%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /opt/php-7.4.0/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 /opt/php-7.4.0/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 /opt/php-7.4.0/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 /opt/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (5%)
001+ Failed loading /home/sys/phpfarm/inst/php74/lib/php/extensions/ioncube_loader_lin_7.4.so: /home/sys/phpfarm/inst/php74/lib/php/extensions/ioncube_loader_lin_7.4.so: cannot open shared object file: No such file or directory
1 (5%)
001+ PHP Warning: Failed loading Zend extension 'opcache.so' (tried: /usr/local/php7/lib/php/extensions/no-debug-non-zts-20190902/opcache.so (Cannot open "/usr/local/php7/lib/php/extensions/no-debug-non-zts-20190902/opcache.so"), /usr/local/php7/lib/php/extensions/no-debug-non-zts-20190902/opcache.so.so (Cannot open "/usr/local/php7/lib/php/extensions/no-debug-non-zts-20190902/opcache.so.so")) in Unknown on line 0
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /usr/local/php7/lib/php/extensions/no-debug-non-zts-20190902/apcu.so (Cannot open "/usr/local/php7/lib/php/extensions/no-debug-non-zts-20190902/apcu.so"), /usr/local/php7/lib/php/extensions/no-debug-non-zts-20190902/apcu.so.so (Cannot open "/usr/local/php7/lib/php/extensions/no-debug-non-zts-20190902/apcu.so.so")) in Unknown on line 0
1 (5%)
001+ PHP Warning: Failed loading Zend extension 'xdebug.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/xdebug.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 'ast.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/ast.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/ast.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/ast.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/ast.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 'zmq.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/zmq.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/zmq.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/zmq.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/zmq.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (5%)
001+ PHP Warning: Module 'bcmath' already loaded in Unknown on line 0
001- Sending bug 46127
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'igbinary.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/igbinary.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/igbinary.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/igbinary.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/igbinary.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 'gmagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/gmagick.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/gmagick.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/gmagick.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/gmagick.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 'redis.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/redis.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/redis.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/redis.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
005+ PHP Warning: PHP Startup: Unable to load dynamic library 'msgpack.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/msgpack.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/msgpack.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/msgpack.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/msgpack.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
006+ PHP Warning: Module 'bcmath' already loaded in Unknown on line 0
007+
008+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/caster/soft/php-7.4.0/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 /home/caster/soft/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/curl (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/curl: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/curl.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/curl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: /usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20190902/mysqli (/usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20190902/mysqli: cannot open shared object file: No such file or directory), /usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20190902/mysqli.so (/usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20190902/mysqli.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
001- Sending bug 46127
002+
003+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
004+
005+ Warning: fgets() expects parameter 1 to be resource, bool given in /root/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
006+ PHP Notice: fwrite(): write of 1 bytes failed with errno=32 Broken pipe in /root/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc on line 158
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/local/lib/php/extensions/no-debug-zts-20190902/redis.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/redis.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20190902/redis.so.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
001- Sending bug 46127
002+ PHP Warning: PHP Startup: Unable to load dynamic library 'parallel.so' (tried: /usr/local/lib/php/extensions/no-debug-zts-20190902/parallel.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/parallel.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20190902/parallel.so.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/parallel.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
003+
004+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/tronglote/programs/php-src-php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
005+
006+ Warning: fgets() expects parameter 1 to be resource, bool given in /home/tronglote/programs/php-src-php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
007+ PHP Notice: fwrite(): write of 1 bytes failed with errno=32 Broken pipe in /home/tronglote/programs/php-src-php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc on line 158
1 (5%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/local/lib/php/extensions/no-debug-zts-20190902/redis.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/redis.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20190902/redis.so.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/redis.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 'rrd.so' (tried: /usr/local/lib/php/extensions/no-debug-zts-20190902/rrd.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/rrd.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-zts-20190902/rrd.so.so (/usr/local/lib/php/extensions/no-debug-zts-20190902/rrd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (5%)
001+ PHP Warning: PHP Startup: ncurses: Unable to initialize module
001- Sending bug 46127
002+ Module compiled with module API=20180731
003+ PHP compiled with module API=20190902
004+ These options need to match
005+ in Unknown on line 0
006+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/root/php-7.4.0/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.0/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10
007+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /root/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10
008+ PHP Warning: stream_socket_accept(): accept failed: Success in /root/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10
009+ PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /root/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11
010+
011+ Warning: stream_socket_client(): SSL: Success in /root/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
012+
013+ Warning: stream_socket_client(): Failed to enable crypto in /root/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
014+
015+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /root/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
016+
017+ Warning: fgets() expects parameter 1 to be resource, bool given in /root/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (5%)
001+ PHP Warning: PHP Startup: ssh2: Unable to initialize module
001- Sending bug 46127
002+ Module compiled with module API=20180731
003+ PHP compiled with module API=20190902
004+ These options need to match
005+ in Unknown on line 0
006+
007+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/src/php/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
008+
009+ Warning: fgets() expects parameter 1 to be resource, bool given in /usr/src/php/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
010+
011+ ** ERROR: process timed out **
1 (5%)
001+ Warning: openssl_csr_new(): Error loading request_extensions_section section v3_req of /usr/local/etc/ssl/openssl.cnf in /root/php-7.4.0/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 /root/php-7.4.0/ext/openssl/tests/CertificateGenerator.inc on line 100
004+
005+ Warning: openssl_x509_export(): cannot get cert from parameter 1 in /root/php-7.4.0/ext/openssl/tests/CertificateGenerator.inc on line 104
006+
007+ Warning: stream_socket_client(): SSL: Connection reset by peer in /root/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
008+
009+ Warning: stream_socket_client(): Failed to enable crypto in /root/php-7.4.0/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 /root/php-7.4.0/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 /root/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (5%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /tmp/php-7.4.0/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.0/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.0/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.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (5%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /usr/src/php-7.4.0/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.0/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.0/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.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (5%)
001+ Warning: stream_socket_client(): SSL: Success in /media/pi/4ab9cfd7-be99-443b-bf0a-9dc34269a5f0/php-7.4.0/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 /media/pi/4ab9cfd7-be99-443b-bf0a-9dc34269a5f0/php-7.4.0/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 /media/pi/4ab9cfd7-be99-443b-bf0a-9dc34269a5f0/php-7.4.0/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 /media/pi/4ab9cfd7-be99-443b-bf0a-9dc34269a5f0/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (5%)
001+ Warning: stream_socket_client(): SSL: Success in /opt/downloads/php-7.4.0/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 /opt/downloads/php-7.4.0/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 /opt/downloads/php-7.4.0/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 /opt/downloads/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (5%)
001+ Warning: stream_socket_client(): SSL: Success in /usr/local/src/php-7.4.0/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/src/php-7.4.0/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/src/php-7.4.0/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/src/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (5%)
001+ Xdebug requires Zend Engine API version 320180731.
002+ The Zend Engine API version 320190902 which is installed, is newer.
003+ Contact Derick Rethans at https://xdebug.org/docs/faq#api for a later version of Xdebug.
004+