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

Count Diff
2 (6%)
001+ Warning: stream_socket_client(): SSL: Success 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
2 (6%)
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 (3%)
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+
1 (3%)
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 (3%)
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 (3%)
001+ Warning: stream_socket_client(): SSL: Success in /opt/LNMP/php/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/LNMP/php/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/LNMP/php/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/LNMP/php/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (3%)
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 (3%)
001+ Warning: stream_socket_client(): SSL: Success in /home/ats/php-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 /home/ats/php-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 /home/ats/php-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 /home/ats/php-src-php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (3%)
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 (3%)
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 (3%)
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 (3%)
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 (3%)
001+ PHP Warning: PHP Startup: redis: Unable to initialize module
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: PHP Startup: zip: Unable to initialize module
007+ Module compiled with module API=20180731
008+ PHP compiled with module API=20190902
009+ These options need to match
010+ in Unknown on line 0
1 (3%)
001+ PHP Warning: PHP Startup: redis: Unable to initialize module
002+ Module compiled with module API=20170718
003+ PHP compiled with module API=20190902
004+ These options need to match
005+ in Unknown on line 0
006+ PHP Warning: PHP Startup: Unable to load dynamic library 'mongodb.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/mongodb.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/mongodb.so: undefined symbol: _zval_ptr_dtor), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/mongodb.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/mongodb.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
007+ PHP Warning: PHP Startup: Unable to load dynamic library 'swoole.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole.so: undefined symbol: _zval_ptr_dtor), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
008+ PHP Warning: PHP Startup: Unable to load dynamic library 'swoole_async.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole_async.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole_async.so: undefined symbol: swAio_handler_read), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole_async.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole_async.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (3%)
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 (3%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'zip' (tried: /usr/local/apps/php740/lib/extensions/no-debug-zts-20190902/zip (/usr/local/apps/php740/lib/extensions/no-debug-zts-20190902/zip: cannot open shared object file: No such file or directory), /usr/local/apps/php740/lib/extensions/no-debug-zts-20190902/zip.so (/usr/local/apps/php740/lib/extensions/no-debug-zts-20190902/zip.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (3%)
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 (3%)
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 (3%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'php_gd2.dll' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/php_gd2.dll (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/php_gd2.dll: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/php_gd2.dll.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/php_gd2.dll.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 'swoole.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole.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 'redis.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/redis.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/redis.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/redis.so.so (/usr/local/php/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
004+ PHP Warning: PHP Startup: Unable to load dynamic library 'swoole_loader71.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole_loader71.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole_loader71.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole_loader71.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole_loader71.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
005+ PHP Notice: Undefined variable: errno in /usr/local/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
006+ PHP Notice: Undefined variable: errstr in /usr/local/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
007+ PHP Warning: stream_socket_server() has been disabled for security reasons in /usr/local/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 7
008+ PHP Warning: stream_socket_accept() expects parameter 1 to be resource, null given in /usr/local/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 /usr/local/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11
010+
011+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/local/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 /usr/local/php-7.4.0/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (3%)
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 (3%)
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