summaryrefslogtreecommitdiff
path: root/ext/pcntl
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pcntl')
-rw-r--r--ext/pcntl/tests/001.phpt8
-rw-r--r--ext/pcntl/tests/async_signals.phpt2
-rw-r--r--ext/pcntl/tests/pcntl_exec.phpt4
-rw-r--r--ext/pcntl/tests/pcntl_exec_2.phpt4
-rw-r--r--ext/pcntl/tests/pcntl_fork_basic.phpt2
-rw-r--r--ext/pcntl/tests/pcntl_fork_variation.phpt16
-rw-r--r--ext/pcntl/tests/pcntl_get_last_error.phpt4
-rw-r--r--ext/pcntl/tests/pcntl_signal_dispatch.phpt2
-rw-r--r--ext/pcntl/tests/pcntl_wait_rusage1.phpt2
-rw-r--r--ext/pcntl/tests/pcntl_waitpid_rusage1.phpt2
-rw-r--r--ext/pcntl/tests/signal_closure_handler.phpt2
11 files changed, 24 insertions, 24 deletions
diff --git a/ext/pcntl/tests/001.phpt b/ext/pcntl/tests/001.phpt
index fb1006e4bd..6aedbaf33b 100644
--- a/ext/pcntl/tests/001.phpt
+++ b/ext/pcntl/tests/001.phpt
@@ -2,11 +2,11 @@
Test pcntl wait functionality
--SKIPIF--
<?php
- if (!extension_loaded("pcntl")) print "skip";
+ if (!extension_loaded("pcntl")) print "skip";
elseif (!function_exists("posix_kill")) print "skip posix_kill() not available";
?>
--FILE--
-<?php
+<?php
function test_exit_waits(){
print "\n\nTesting pcntl_wifexited and wexitstatus....";
@@ -25,7 +25,7 @@ function test_exit_signal(){
print "\n\nTesting pcntl_wifsignaled....";
$pid=pcntl_fork();
-
+
if ($pid==0) {
sleep(10);
exit;
@@ -47,7 +47,7 @@ function test_stop_signal(){
print "\n\nTesting pcntl_wifstopped and pcntl_wstopsig....";
$pid=pcntl_fork();
-
+
if ($pid==0) {
sleep(1);
exit;
diff --git a/ext/pcntl/tests/async_signals.phpt b/ext/pcntl/tests/async_signals.phpt
index b650606df3..f6f39afd51 100644
--- a/ext/pcntl/tests/async_signals.phpt
+++ b/ext/pcntl/tests/async_signals.phpt
@@ -2,7 +2,7 @@
Asynchronous signal handling through VM interrupts
--SKIPIF--
<?php
- if (!extension_loaded("pcntl")) print "skip";
+ if (!extension_loaded("pcntl")) print "skip";
elseif (!function_exists("pcntl_signal")) print "skip pcntl_signal() not available";
elseif (!function_exists("posix_kill")) print "skip posix_kill() not available";
elseif (!function_exists("posix_getpid")) print "skip posix_getpid() not available";
diff --git a/ext/pcntl/tests/pcntl_exec.phpt b/ext/pcntl/tests/pcntl_exec.phpt
index 9a2c96ea38..b1225221de 100644
--- a/ext/pcntl/tests/pcntl_exec.phpt
+++ b/ext/pcntl/tests/pcntl_exec.phpt
@@ -1,8 +1,8 @@
--TEST--
pcntl_exec()
--SKIPIF--
-<?php
-if (!extension_loaded("pcntl")) print "skip";
+<?php
+if (!extension_loaded("pcntl")) print "skip";
if (!getenv("TEST_PHP_EXECUTABLE") || !is_executable(getenv("TEST_PHP_EXECUTABLE"))) die("skip TEST_PHP_EXECUTABLE not set");
?>
--FILE--
diff --git a/ext/pcntl/tests/pcntl_exec_2.phpt b/ext/pcntl/tests/pcntl_exec_2.phpt
index e18527dba0..0202904523 100644
--- a/ext/pcntl/tests/pcntl_exec_2.phpt
+++ b/ext/pcntl/tests/pcntl_exec_2.phpt
@@ -3,7 +3,7 @@ pcntl_exec() 2
--SKIPIF--
<?php
-if (!extension_loaded("pcntl")) print "skip";
+if (!extension_loaded("pcntl")) print "skip";
if (!getenv("TEST_PHP_EXECUTABLE") || !is_executable(getenv("TEST_PHP_EXECUTABLE"))) die("skip TEST_PHP_EXECUTABLE not set");
?>
@@ -15,7 +15,7 @@ if (getenv("PCNTL_EXEC_TEST_IS_CHILD")) {
}
echo "ok\n";
pcntl_exec(getenv("TEST_PHP_EXECUTABLE"), array('-n', __FILE__), array(
- b"PCNTL_EXEC_TEST_IS_CHILD" => b"1",
+ b"PCNTL_EXEC_TEST_IS_CHILD" => b"1",
b"FOO" => b"BAR",
1 => b"long")
);
diff --git a/ext/pcntl/tests/pcntl_fork_basic.phpt b/ext/pcntl/tests/pcntl_fork_basic.phpt
index b1e2a9bf68..59931df850 100644
--- a/ext/pcntl/tests/pcntl_fork_basic.phpt
+++ b/ext/pcntl/tests/pcntl_fork_basic.phpt
@@ -15,7 +15,7 @@ echo "*** Test by calling method or function with its expected arguments, first
$pid = pcntl_fork();
if ($pid > 0) {
- pcntl_wait($status);
+ pcntl_wait($status);
var_dump($pid);
} else {
var_dump($pid);
diff --git a/ext/pcntl/tests/pcntl_fork_variation.phpt b/ext/pcntl/tests/pcntl_fork_variation.phpt
index 4eea07181c..4a83966533 100644
--- a/ext/pcntl/tests/pcntl_fork_variation.phpt
+++ b/ext/pcntl/tests/pcntl_fork_variation.phpt
@@ -16,24 +16,24 @@ echo "*** Testing the process isolations between a process and its forks ***\n";
$pid = pcntl_fork();
if ($pid > 0) {
- pcntl_wait($status);
+ pcntl_wait($status);
echo "father is $pid\n";
- if (!isset($pid2))
+ if (!isset($pid2))
{
echo "father ($pid) doesn't know its grandsons\n";
}
-}
-else
+}
+else
{
echo "son ($pid)\n";
$pid2 = pcntl_fork();
if ($pid2 > 0)
- {
- pcntl_wait($status2);
+ {
+ pcntl_wait($status2);
echo "son is father of $pid2\n";
- }
- else
+ }
+ else
{
echo "grandson ($pid2)\n";
}
diff --git a/ext/pcntl/tests/pcntl_get_last_error.phpt b/ext/pcntl/tests/pcntl_get_last_error.phpt
index 4ed66c9610..f1a517051c 100644
--- a/ext/pcntl/tests/pcntl_get_last_error.phpt
+++ b/ext/pcntl/tests/pcntl_get_last_error.phpt
@@ -2,10 +2,10 @@
Test pcntl_get_last_error()
--SKIPIF--
<?php
- if (!extension_loaded("pcntl")) print "skip";
+ if (!extension_loaded("pcntl")) print "skip";
?>
--FILE--
-<?php
+<?php
var_dump(pcntl_get_last_error());
$pid = pcntl_wait($status);
var_dump($pid);
diff --git a/ext/pcntl/tests/pcntl_signal_dispatch.phpt b/ext/pcntl/tests/pcntl_signal_dispatch.phpt
index acf6cc05e1..dc5bb7e3ff 100644
--- a/ext/pcntl/tests/pcntl_signal_dispatch.phpt
+++ b/ext/pcntl/tests/pcntl_signal_dispatch.phpt
@@ -2,7 +2,7 @@
pcnt_signal_dispatch()
--SKIPIF--
<?php
- if (!extension_loaded("pcntl")) print "skip";
+ if (!extension_loaded("pcntl")) print "skip";
elseif (!function_exists("pcntl_signal")) print "skip pcntl_signal() not available";
elseif (!function_exists("pcntl_signal_dispatch")) print "skip pcntl_signal_dispatch() not available";
elseif (!function_exists("posix_kill")) print "skip posix_kill() not available";
diff --git a/ext/pcntl/tests/pcntl_wait_rusage1.phpt b/ext/pcntl/tests/pcntl_wait_rusage1.phpt
index 6c9cd39540..b23195f914 100644
--- a/ext/pcntl/tests/pcntl_wait_rusage1.phpt
+++ b/ext/pcntl/tests/pcntl_wait_rusage1.phpt
@@ -25,7 +25,7 @@ if ($pid == -1) {
pcntl_wait($status, 0, $rusage);
var_dump(gettype($rusage));
var_dump(count($rusage));
-
+
$rusage = new stdClass;
pcntl_wait($status, 0, $rusage);
var_dump(gettype($rusage));
diff --git a/ext/pcntl/tests/pcntl_waitpid_rusage1.phpt b/ext/pcntl/tests/pcntl_waitpid_rusage1.phpt
index 4ecc664bac..393dd59b9c 100644
--- a/ext/pcntl/tests/pcntl_waitpid_rusage1.phpt
+++ b/ext/pcntl/tests/pcntl_waitpid_rusage1.phpt
@@ -25,7 +25,7 @@ if ($pid == -1) {
pcntl_waitpid($pid, $status, 0, $rusage);
var_dump(gettype($rusage));
var_dump(count($rusage));
-
+
$rusage = new stdClass;
pcntl_waitpid($pid, $status, 0, $rusage);
var_dump(gettype($rusage));
diff --git a/ext/pcntl/tests/signal_closure_handler.phpt b/ext/pcntl/tests/signal_closure_handler.phpt
index 438e05159f..1e84ee7c6b 100644
--- a/ext/pcntl/tests/signal_closure_handler.phpt
+++ b/ext/pcntl/tests/signal_closure_handler.phpt
@@ -2,7 +2,7 @@
Closures as a signal handler
--SKIPIF--
<?php
- if (!extension_loaded("pcntl")) print "skip";
+ if (!extension_loaded("pcntl")) print "skip";
elseif (!function_exists("pcntl_signal")) print "skip pcntl_signal() not available";
elseif (!function_exists("posix_kill")) print "skip posix_kill() not available";
elseif (!function_exists("posix_getpid")) print "skip posix_getpid() not available";