We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c814b34 commit 01c0095Copy full SHA for 01c0095
ext/openssl/tests/bug77390.phpt
@@ -23,6 +23,7 @@ $clientCode = <<<'CODE'
23
24
$read = [$fp];
25
$buf = '';
26
+ $emptyChunkPrinted = false;
27
$warmedUp = false;
28
while (stream_select($read, $write, $except, 1000)) {
29
$chunk = stream_get_contents($fp, 4096);
@@ -37,7 +38,10 @@ $clientCode = <<<'CODE'
37
38
phpt_notify('server');
39
continue;
40
}
- var_dump($chunk);
41
+ if ($chunk !== '' || !$emptyChunkPrinted) {
42
+ $emptyChunkPrinted = true;
43
+ var_dump($chunk);
44
+ }
45
if ($buf === 'hello, world') {
46
break;
47
@@ -123,5 +127,4 @@ ServerClientTestCase::getInstance()->run($clientCode, [
123
127
?>
124
128
--EXPECT--
125
129
string(0) ""
126
-string(0) ""
130
string(12) "hello, world"
0 commit comments