equal
deleted
inserted
replaced
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 } |
|