components/php-5_2/php-sapi/patches/16_php_openssl_tests.patch
changeset 4073 4f086b95f18c
parent 4071 4b68c2b0134b
child 4074 3b59c13ef5ec
equal deleted inserted replaced
4071:4b68c2b0134b 4073:4f086b95f18c
     1 This test now causing an infinite loop.
       
     2 Produced fix by comparing to the php 5.3.26 version of the test.
       
     3 
       
     4 --- php-5.2.17/ext/openssl/tests/bug48182.phpt_orig	2009-09-22 03:15:10.000000000 -0700
       
     5 +++ php-5.2.17/ext/openssl/tests/bug48182.phpt	2013-06-20 14:16:39.947981967 -0700
       
     6 @@ -51,7 +51,7 @@
       
     7  	$socket = stream_socket_client($host, $errno, $errstr, 10, $flags);
       
     8  	stream_set_blocking($socket, 0);
       
     9  
       
    10 -	while ($data) {
       
    11 +	while ($socket && $data) {
       
    12  		$wrote = fwrite($socket, $data, strlen($data));
       
    13  		$data = substr($data, $wrote);
       
    14  	}