]> granicus.if.org Git - php/commitdiff
restored that test part in ext/openssl to enable notify/wait
authorAnatol Belski <ab@php.net>
Wed, 26 Feb 2014 12:37:20 +0000 (13:37 +0100)
committerAnatol Belski <ab@php.net>
Wed, 26 Feb 2014 12:37:20 +0000 (13:37 +0100)
ext/openssl/tests/ServerClientTestCase.inc

index 06e6154fd0b12c03186c933d7f3cf599e33a2b86..03e0c2de87c92ab3e3cf420b0389c7eb9869f332 100644 (file)
@@ -72,10 +72,11 @@ class ServerClientTestCase
     public function runWorker()
     {
         $code = '';
-       $i = 0;
 
-       while(($line = fgets(STDIN)) != false) {
-            if ($i++ > 128) {
+        while (1) {
+            $line = fgets(STDIN);
+
+            if (trim($line) === "---") {
                 break;
             }