summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2010-04-20 10:04:26 +0000
committerAntony Dovgal <tony2001@php.net>2010-04-20 10:04:26 +0000
commit9c97c268320c119e95344462af20c81185a4840c (patch)
tree14c7c8c7b6bc0eaf6cca9dc6d366d4844fb7f7b8
parentb47136d332d6e133d7d5e30594488893b65d8534 (diff)
downloadphp-git-9c97c268320c119e95344462af20c81185a4840c.tar.gz
fix infinite loop in the test
-rw-r--r--ext/openssl/tests/bug48182.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/tests/bug48182.phpt b/ext/openssl/tests/bug48182.phpt
index 7471c4c5df..146c4c9226 100644
--- a/ext/openssl/tests/bug48182.phpt
+++ b/ext/openssl/tests/bug48182.phpt
@@ -51,7 +51,7 @@ function ssl_async_client($port) {
$socket = stream_socket_client($host, $errno, $errstr, 10, $flags);
stream_set_blocking($socket, 0);
- while ($data) {
+ while ($socket && $data) {
$wrote = fwrite($socket, $data, strlen($data));
$data = substr($data, $wrote);
}