diff options
| author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-08-09 11:06:57 +0200 |
|---|---|---|
| committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-08-09 22:03:36 +0200 |
| commit | 7aacc705d03887c64a90489e367f4c40b46aa3c2 (patch) | |
| tree | ec7388f82b37e8611c7513aa95678d7feae82329 /ext/pcntl/tests | |
| parent | 05478e985eb50c473054b4f1bf174f48ead78784 (diff) | |
| download | php-git-7aacc705d03887c64a90489e367f4c40b46aa3c2.tar.gz | |
Add many missing closing PHP tags to tests
Closes GH-5958
Diffstat (limited to 'ext/pcntl/tests')
| -rw-r--r-- | ext/pcntl/tests/pcntl_unshare_01.phpt | 3 | ||||
| -rw-r--r-- | ext/pcntl/tests/pcntl_unshare_02.phpt | 3 | ||||
| -rw-r--r-- | ext/pcntl/tests/pcntl_unshare_03.phpt | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/ext/pcntl/tests/pcntl_unshare_01.phpt b/ext/pcntl/tests/pcntl_unshare_01.phpt index 815a3ce964..6debaace58 100644 --- a/ext/pcntl/tests/pcntl_unshare_01.phpt +++ b/ext/pcntl/tests/pcntl_unshare_01.phpt @@ -1,7 +1,7 @@ --TEST-- pcntl_unshare() with CLONE_NEWUSER --SKIPIF-- -<?php +<?php if (!extension_loaded("pcntl")) die("skip"); if (!extension_loaded("posix")) die("skip posix extension not available"); if (!function_exists("pcntl_unshare")) die("skip pcntl_unshare is not available"); @@ -17,5 +17,6 @@ $olduid = posix_getuid(); pcntl_unshare(CLONE_NEWUSER); $newuid = posix_getuid(); var_dump($olduid === $newuid); +?> --EXPECT-- bool(false) diff --git a/ext/pcntl/tests/pcntl_unshare_02.phpt b/ext/pcntl/tests/pcntl_unshare_02.phpt index cafd64dd96..7cc9341154 100644 --- a/ext/pcntl/tests/pcntl_unshare_02.phpt +++ b/ext/pcntl/tests/pcntl_unshare_02.phpt @@ -1,7 +1,7 @@ --TEST-- pcntl_unshare() with CLONE_NEWPID --SKIPIF-- -<?php +<?php if (!extension_loaded("pcntl")) die("skip"); if (!extension_loaded("posix")) die("skip posix extension not available"); if (!function_exists("pcntl_unshare")) die("skip pcntl_unshare is not available"); @@ -29,6 +29,7 @@ if(!pcntl_fork()) { var_dump(getmypid()); exit(); } +?> --EXPECTF-- int(%d) int(1) diff --git a/ext/pcntl/tests/pcntl_unshare_03.phpt b/ext/pcntl/tests/pcntl_unshare_03.phpt index d69bd40d40..b1217b6300 100644 --- a/ext/pcntl/tests/pcntl_unshare_03.phpt +++ b/ext/pcntl/tests/pcntl_unshare_03.phpt @@ -1,7 +1,7 @@ --TEST-- pcntl_unshare() with CLONE_NEWNET --SKIPIF-- -<?php +<?php if (!extension_loaded("pcntl")) die("skip"); if (!extension_loaded("posix")) die("skip posix extension not available"); if (!function_exists("pcntl_unshare")) die("skip pcntl_unshare is not available"); @@ -23,6 +23,7 @@ if(posix_getuid() !== 0) { var_dump(gethostbyname('php.net')); pcntl_unshare(CLONE_NEWNET); var_dump(gethostbyname('php.net')); +?> --EXPECTF-- string(%d) %s string(7) "php.net" |
