cvs: php4 /ext/pcntl/tests 001.phpt
| From: | Jani Taskinen | Date: | Thu, 06 Dec 2001 04:43:58 +0000 |
| Subject: | cvs: php4 /ext/pcntl/tests 001.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-8454@lists.php.net to get a copy of this message | ||
sniper Wed Dec 5 23:43:58 2001 EDT
Modified files:
/php4/ext/pcntl/tests 001.phpt
Log:
Fix test when allow_call_time_pass_reference = Off
Index: php4/ext/pcntl/tests/001.phpt
diff -u php4/ext/pcntl/tests/001.phpt:1.3 php4/ext/pcntl/tests/001.phpt:1.4
--- php4/ext/pcntl/tests/001.phpt:1.3 Fri Jul 6 14:30:38 2001
+++ php4/ext/pcntl/tests/001.phpt Wed Dec 5 23:43:58 2001
@@ -15,7 +15,7 @@
exit(-1);
} else {
$options=0;
- pcntl_waitpid($pid, &$status, $options);
+ pcntl_waitpid($pid, $status, $options);
if ( pcntl_wifexited($status) ) print "\nExited With: ". pcntl_wexitstatus($status);
}
}
@@ -31,7 +31,7 @@
} else {
$options=0;
posix_kill($pid, SIGTERM);
- pcntl_waitpid($pid, &$status, $options);
+ pcntl_waitpid($pid, $status, $options);
if ( pcntl_wifsignaled($status) ) {
$signal_print=pcntl_wtermsig($status);
if ($signal_print==SIGTERM) $signal_print="SIGTERM";
@@ -53,7 +53,7 @@
} else {
$options=WUNTRACED;
posix_kill($pid, SIGSTOP);
- pcntl_waitpid($pid, &$status, $options);
+ pcntl_waitpid($pid, $status, $options);
if ( pcntl_wifstopped($status) ) {
$signal_print=pcntl_wstopsig($status);
if ($signal_print==SIGSTOP) $signal_print="SIGSTOP";