$php = getenv("TEST_PHP_EXECUTABLE");
$callee = create_sleep_script();
-proc_open("$php $callee", $spec, $pipes);
+proc_open("$php -n $callee", $spec, $pipes);
var_dump(count($spec));
var_dump($pipes);
$php = getenv("TEST_PHP_EXECUTABLE");
$callee = create_sleep_script();
-proc_open("$php $callee", $spec, $pipes);
+proc_open("$php -n $callee", $spec, $pipes);
var_dump(count($spec));
var_dump($pipes);
$callee = create_sleep_script();
$spec[$i] = array('pi');
-proc_open("$php $callee", $spec, $pipes);
+proc_open("$php -n $callee", $spec, $pipes);
$spec[$i] = 1;
-proc_open("$php $callee", $spec, $pipes);
+proc_open("$php -n $callee", $spec, $pipes);
$spec[$i] = array('pipe', "test");
-proc_open("$php $callee", $spec, $pipes);
+proc_open("$php -n $callee", $spec, $pipes);
var_dump($pipes);
$spec[$i] = array('file', "test", "z");
-proc_open("$php $callee", $spec, $pipes);
+proc_open("$php -n $callee", $spec, $pipes);
var_dump($pipes);
echo "END\n";
<?php
$callee = dirname(__FILE__) . "/process_proc_open_bug51800_right.php";
$php = PHP_BINARY;
-$cmd = "$php $callee";
+$cmd = "$php -n $callee";
$status;
$stdout = "";
<?php
$callee = dirname(__FILE__) . "/process_proc_open_bug51800_right2.php";
$php = PHP_BINARY;
-$cmd = "$php $callee";
+$cmd = "$php -n $callee";
$status;
$stdout = "";
$descriptorspec = array(0 => array("pipe", "r"),1 => array("pipe", "w"));
$pipes = array();
-$process = proc_open(PHP_BINARY.' -f ' . $fl, $descriptorspec, $pipes, NULL, NULL, array("blocking_pipes" => true));
+$process = proc_open(PHP_BINARY.' -n -f ' . $fl, $descriptorspec, $pipes, NULL, NULL, array("blocking_pipes" => true));
for($i = 0; $i < 10; $i++){
fwrite($pipes[0], "hello$i\r\n");