com php-src: Print empty string in test for but 77390 just once: ext/openssl/tests/bug77390.phpt

From: Date: Sun, 24 Feb 2019 13:11:27 +0000
Subject: com php-src: Print empty string in test for but 77390 just once: ext/openssl/tests/bug77390.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-104848@lists.php.net to get a copy of this message
Commit: 01c00953ff07b3b9414c446c6872b047b23afe24 Author: Jakub Zelenka <bukka@php.net> Sun, 24 Feb 2019 13:11:27 +0000 Parents: c814b34b1dc43af47280910d2ebc44f6adc26589 Branches: PHP-7.2 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=01c00953ff07b3b9414c446c6872b047b23afe24 Log: Print empty string in test for but 77390 just once Changed paths: M ext/openssl/tests/bug77390.phpt Diff: diff --git a/ext/openssl/tests/bug77390.phpt b/ext/openssl/tests/bug77390.phpt index 2aa2b15..99ba43e 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"

« previous php.cvs (#104848) next »