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

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
221 (62%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /usr/src/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/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/php/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
006+
007+ Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/src/php/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
110 (31%)
001+ Warning: stream_socket_client(): SSL: Success in /usr/src/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/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/php/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
006+
007+ Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/src/php/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
7 (2%)
001+ Warning: openssl_csr_new(): Error signing request in /usr/local/src/php-7.2.34-sdv/ext/openssl/tests/CertificateGenerator.inc on line 62
001- Sending bug 46127
002+
003+ Warning: openssl_csr_sign(): cannot get CSR from parameter 1 in /usr/local/src/php-7.2.34-sdv/ext/openssl/tests/CertificateGenerator.inc on line 68
004+
005+ Warning: openssl_csr_sign(): cannot get cert from parameter 2 in /usr/local/src/php-7.2.34-sdv/ext/openssl/tests/CertificateGenerator.inc on line 100
006+
007+ Warning: openssl_x509_export(): cannot get cert from parameter 1 in /usr/local/src/php-7.2.34-sdv/ext/openssl/tests/CertificateGenerator.inc on line 104
008+
009+ Warning: stream_socket_client(): SSL: Connection reset by peer in /usr/local/src/php-7.2.34-sdv/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
010+
011+ Warning: stream_socket_client(): Failed to enable crypto in /usr/local/src/php-7.2.34-sdv/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
012+
013+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /usr/local/src/php-7.2.34-sdv/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
014+
015+ Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/src/php-7.2.34-sdv/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
2 (1%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/local/src/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
001- Sending bug 46127
002+
003+ Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/src/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (0%)
001+ Warning: stream_socket_client(): SSL: Success in /usr/local/src/php-7.2.34/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.2.34/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.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
006+
007+ Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/src/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (0%)
001+ Warning: stream_socket_client(): SSL: Success in /srv/samba/share/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 /srv/samba/share/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 /srv/samba/share/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
006+
007+ Warning: fgets() expects parameter 1 to be resource, boolean given in /srv/samba/share/php-src/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (0%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /usr/src/php-7.2.34/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.2.34/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.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
006+
007+ Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/src/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (0%)
001+ Warning: stream_socket_client(): SSL: Connection reset by peer in /root/php-7.2.34/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-7.2.34/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-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
006+
007+ Warning: fgets() expects parameter 1 to be resource, boolean given in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (0%)
001+ PHP Warning: stream_socket_accept(): Unable to set local cert chain file `/root/php-7.2.34/ext/openssl/tests/bug46127.pem.tmp'; Check that your cafile/capath settings include details of your certificate and its issuer in /root/php-7.2.34/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.2.34/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.2.34/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10
004+ PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 11
005+
006+ Warning: stream_socket_client(): SSL: Success in /root/php-7.2.34/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.2.34/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.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
011+
012+ Warning: fgets() expects parameter 1 to be resource, boolean given in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
1 (0%)
001+ PHP Warning: PHP Startup: tokenizer: Unable to initialize module
001- Sending bug 46127
002+ Module compiled with module API=20151012
003+ PHP compiled with module API=20170718
004+ These options need to match
005+ in Unknown on line 0
006+ PHP Warning: PHP Startup: memcache: Unable to initialize module
007+ Module compiled with module API=20151012
008+ PHP compiled with module API=20170718
009+ These options need to match
010+ in Unknown on line 0
011+ PHP Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
012+
013+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
014+
015+ Warning: fgets() expects parameter 1 to be resource, boolean given in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
016+ PHP Warning: stream_socket_accept(): accept failed: Connection timed out in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10
1 (0%)
001+ PHP Warning: PHP Startup: tokenizer: Unable to initialize module
001- Sending bug 46127
002+ Module compiled with module API=20151012
003+ PHP compiled with module API=20170718
004+ These options need to match
005+ in Unknown on line 0
006+ PHP Warning: PHP Startup: memcache: Unable to initialize module
007+ Module compiled with module API=20151012
008+ PHP compiled with module API=20170718
009+ These options need to match
010+ in Unknown on line 0
011+ PHP Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
012+
013+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
014+
015+ Warning: fgets() expects parameter 1 to be resource, boolean given in /root/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
016+
017+ ** ERROR: process timed out **
1 (0%)
001+ PHP Warning: PHP Startup: mysql: Unable to initialize module
002+ Module compiled with module API=20131226
003+ PHP compiled with module API=20170718
004+ These options need to match
005+ in Unknown on line 0
1 (0%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'swoole.so' (tried: /usr/lib64/php/modules/swoole.so (/usr/lib64/php/modules/swoole.so: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/swoole.so.so (/usr/lib64/php/modules/swoole.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (0%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'openssl' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/openssl (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/openssl: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/openssl.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/openssl.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 /data/home/xgxia/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
004+
005+ Warning: fgets() expects parameter 1 to be resource, boolean given in /data/home/xgxia/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
006+
007+ ** ERROR: process timed out **
1 (0%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20170718/imagick.so (libMagickWand-6.Q16.so.6: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20170718/imagick.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (0%)
001+ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.so' (tried: /usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.so (/usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcached.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/php/lib/php/extensions/no-debug-zts-20131226/memcache.so' (tried: /usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so (/usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1 (0%)
001+ PHP Warning: Module 'zip' already loaded 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 /jxd/code/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
004+
005+ Warning: fgets() expects parameter 1 to be resource, boolean given in /jxd/code/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12
006+ PHP Warning: stream_socket_accept(): accept failed: Connection timed out in /jxd/code/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(119) : eval()'d code on line 10
1 (0%)
001+ Failed loading /opt/streamtool/app/php/lib/php/extensions/no-debug-non-zts-20190902/opcache.so: /opt/streamtool/app/php/lib/php/extensions/no-debug-non-zts-20190902/opcache.so: undefined symbol: zend_preload_autoload
001- Sending bug 46127
002+
003+ Warning: stream_socket_client(): SSL: Success in /root/build/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
004+
005+ Warning: stream_socket_client(): Failed to enable crypto in /root/build/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
006+
007+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /root/build/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 10
008+
009+ Warning: fgets() expects parameter 1 to be resource, boolean given in /root/build/php-7.2.34/ext/openssl/tests/ServerClientTestCase.inc(130) : eval()'d code on line 12