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

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

Count Diff
2 (18%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /root/sources/php/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 10
001- Sending bug 46127
002+
003+ Warning: fgets() expects parameter 1 to be resource, boolean given in /root/sources/php/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 12
2 (18%)
001+ Warning: stream_socket_client(): SSL: Handshake timed out in /home/webpi/ProgramFiles/PHP/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 10
001- Sending bug 46127
002+
003+ Warning: stream_socket_client(): Failed to enable crypto in /home/webpi/ProgramFiles/PHP/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : 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/webpi/ProgramFiles/PHP/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 10
006+
007+ Warning: fgets() expects parameter 1 to be resource, boolean given in /home/webpi/ProgramFiles/PHP/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 12
1 (9%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /usr/src/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 10
001- Sending bug 46127
002+
003+ Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/src/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 12
1 (9%)
001+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Connection refused) in /home/webuser/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 10
001- Sending bug 46127
002+
003+ Warning: fgets() expects parameter 1 to be resource, boolean given in /home/webuser/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 12
1 (9%)
001+ Warning: stream_socket_client(): SSL: Handshake timed out in /usr/local/src/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : 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-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : 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-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 10
006+
007+ Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/src/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 12
008+ PHP Warning: stream_socket_accept(): SSL: Connection reset by peer in /usr/local/src/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(86) : eval()'d code on line 10
009+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /usr/local/src/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(86) : eval()'d code on line 10
010+ PHP Warning: stream_socket_accept(): accept failed: Error 0 in /usr/local/src/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(86) : eval()'d code on line 10
011+ PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /usr/local/src/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(86) : eval()'d code on line 11
1 (9%)
001+ Warning: stream_socket_client(): SSL: Handshake timed out in /usr/local/src/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : 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-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : 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-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 10
006+
007+ Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/src/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 12
1 (9%)
001+ Warning: stream_socket_client(): SSL: Handshake timed out in /data/tools/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 10
001- Sending bug 46127
002+
003+ Warning: stream_socket_client(): Failed to enable crypto in /data/tools/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : 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 /data/tools/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 10
006+
007+ Warning: fgets() expects parameter 1 to be resource, boolean given in /data/tools/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 12
1 (9%)
001+ PHP Warning: stream_socket_accept(): SSL_R_NO_SHARED_CIPHER: no suitable shared cipher could be used. This could be because the server is missing an SSL certificate (local_cert context option) in /home/dima/Downloads/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(86) : eval()'d code on line 10
001- Sending bug 46127
002+ PHP Warning: stream_socket_accept(): Failed to enable crypto in /home/dima/Downloads/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(86) : eval()'d code on line 10
003+ PHP Warning: stream_socket_accept(): accept failed: Success in /home/dima/Downloads/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(86) : eval()'d code on line 10
004+ PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/dima/Downloads/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(86) : eval()'d code on line 11
005+
006+ Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
007+ error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure in /home/dima/Downloads/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 10
008+
009+ Warning: stream_socket_client(): Failed to enable crypto in /home/dima/Downloads/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : 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/dima/Downloads/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 10
012+
013+ Warning: fgets() expects parameter 1 to be resource, boolean given in /home/dima/Downloads/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 12
1 (9%)
001+ Failed loading /opt/php/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so: /opt/php/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so: undefined symbol: zend_sort
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-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 10
004+
005+ Warning: fgets() expects parameter 1 to be resource, boolean given in /root/php-5.6.16/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 12