Skip to content

Instantly share code, notes, and snippets.

@weltling
Created December 24, 2014 14:56
Show Gist options
  • Save weltling/a4d730612c747b12159d to your computer and use it in GitHub Desktop.
Save weltling/a4d730612c747b12159d to your computer and use it in GitHub Desktop.
diff --git a/ext/standard/tests/general_functions/proc_open_pipes1.phpt b/ext/standard/tests/general_functions/proc_open_pipes1.phpt
index 011e093..7f0bb18 100644
--- a/ext/standard/tests/general_functions/proc_open_pipes1.phpt
+++ b/ext/standard/tests/general_functions/proc_open_pipes1.phpt
@@ -7,7 +7,11 @@ for ($i = 3; $i<= 30; $i++) {
$spec[$i] = array('pipe', 'w');
}
-proc_open('sleep 1', $spec, $pipes);
+$callee = dirname(__FILE__) . DIRECTORY_SEPARATOR . "proc_open_pipes_sleep.php";
+$cmd = PHP_BINARY;
+file_put_contents($callee, "<?php\nsleep(1);\n");
+
+proc_open("$cmd $callee", $spec, $pipes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment