]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-7.4'
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 20 Dec 2019 12:52:08 +0000 (13:52 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 20 Dec 2019 12:52:08 +0000 (13:52 +0100)
* PHP-7.4:
  Try to make proc_open_bug69900.phpt more robust

1  2 
ext/standard/tests/streams/proc_open_bug69900.phpt

index 0eb9e4505455643dc11087767a0f91bb7404b17f,61775f72b26ac729bf08253f1bf0fece3caab091..eacd86c0a9c6ceacda090b52e6ee5ca229fb08d7
@@@ -48,7 -47,14 +47,13 @@@ fclose($pipes[1])
  
  proc_close($process);
  
+ /* It is expected that the first call takes more than the limit.
+  * Allow one more to account for a possible process switch. */
+ if ($moreThanLimit > 2) {
+     echo "fgets() took more than $max_ms ms $moreThanLimit times\n";
+ }
  ?>
 -===DONE===
  --CLEAN--
  <?php
  $fl = __DIR__ . DIRECTORY_SEPARATOR . "test69900.php";