summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Zelenka <bukka@php.net>2019-02-24 13:11:27 +0000
committerJakub Zelenka <bukka@php.net>2019-02-24 13:11:27 +0000
commit01c00953ff07b3b9414c446c6872b047b23afe24 (patch)
tree7b24f41eddacb4a5dca33ebc41a7be286000d144
parentc814b34b1dc43af47280910d2ebc44f6adc26589 (diff)
downloadphp-git-01c00953ff07b3b9414c446c6872b047b23afe24.tar.gz
Print empty string in test for but 77390 just once
-rw-r--r--ext/openssl/tests/bug77390.phpt7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/openssl/tests/bug77390.phpt b/ext/openssl/tests/bug77390.phpt
index 2aa2b15b41..99ba43e50b 100644
--- a/ext/openssl/tests/bug77390.phpt
+++ b/ext/openssl/tests/bug77390.phpt
@@ -23,6 +23,7 @@ $clientCode = <<<'CODE'
$read = [$fp];
$buf = '';
+ $emptyChunkPrinted = false;
$warmedUp = false;
while (stream_select($read, $write, $except, 1000)) {
$chunk = stream_get_contents($fp, 4096);
@@ -37,7 +38,10 @@ $clientCode = <<<'CODE'
phpt_notify('server');
continue;
}
- var_dump($chunk);
+ if ($chunk !== '' || !$emptyChunkPrinted) {
+ $emptyChunkPrinted = true;
+ var_dump($chunk);
+ }
if ($buf === 'hello, world') {
break;
}
@@ -123,5 +127,4 @@ ServerClientTestCase::getInstance()->run($clientCode, [
?>
--EXPECT--
string(0) ""
-string(0) ""
string(12) "hello, world"