diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 17:23:43 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 19:44:14 +0200 |
commit | 17ccbeec3242b80f84fbf6b3acd58421ef003b02 (patch) | |
tree | 8fed8d7515c6603fd4a50eb0f8177883bc6da336 /ext/posix | |
parent | cc7215f48f66982f0b7799c47d8fa4c09a32a3c7 (diff) | |
download | php-git-17ccbeec3242b80f84fbf6b3acd58421ef003b02.tar.gz |
Trim trailing whitespace in *.phpt
Diffstat (limited to 'ext/posix')
80 files changed, 300 insertions, 300 deletions
diff --git a/ext/posix/tests/posix_ctermid.phpt b/ext/posix/tests/posix_ctermid.phpt index 551ed7304e..ccf850d776 100644 --- a/ext/posix/tests/posix_ctermid.phpt +++ b/ext/posix/tests/posix_ctermid.phpt @@ -7,12 +7,12 @@ Source code: ext/posix/posix.c Falko Menge, mail at falko-menge dot de PHP Testfest Berlin 2009-05-10 --SKIPIF-- -<?php - if (!extension_loaded('posix')) { +<?php + if (!extension_loaded('posix')) { die('SKIP - POSIX extension not available'); } // needed because of #ifdef HAVE_CTERMID in posix.c - if (!function_exists('posix_ctermid')) { + if (!function_exists('posix_ctermid')) { die('SKIP - Function posix_ctermid() not available'); } ?> diff --git a/ext/posix/tests/posix_ctermid_basic.phpt b/ext/posix/tests/posix_ctermid_basic.phpt index d1d46943ba..467e60e9ba 100644 --- a/ext/posix/tests/posix_ctermid_basic.phpt +++ b/ext/posix/tests/posix_ctermid_basic.phpt @@ -5,8 +5,8 @@ Marco Fabbri mrfabbri@gmail.com Francesco Fullone ff@ideato.it #PHPTestFest Cesena Italia on 2009-06-20 --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php diff --git a/ext/posix/tests/posix_errno_basic.phpt b/ext/posix/tests/posix_errno_basic.phpt index cd94a97515..c2fd021669 100644 --- a/ext/posix/tests/posix_errno_basic.phpt +++ b/ext/posix/tests/posix_errno_basic.phpt @@ -5,8 +5,8 @@ Morten Amundsen mor10am@gmail.com Francesco Fullone ff@ideato.it #PHPTestFest Cesena Italia on 2009-06-20 --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php diff --git a/ext/posix/tests/posix_errno_variation1.phpt b/ext/posix/tests/posix_errno_variation1.phpt index b57b7c0cac..ce8208b7ab 100644 --- a/ext/posix/tests/posix_errno_variation1.phpt +++ b/ext/posix/tests/posix_errno_variation1.phpt @@ -5,9 +5,9 @@ Morten Amundsen mor10am@gmail.com Francesco Fullone ff@ideato.it #PHPTestFest Cesena Italia on 2009-06-20 --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; - if(posix_getuid()==0) print "skip - Cannot run test as root."; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; + if(posix_getuid()==0) print "skip - Cannot run test as root."; ?> --FILE-- <?php diff --git a/ext/posix/tests/posix_errno_variation2.phpt b/ext/posix/tests/posix_errno_variation2.phpt index ad3aa311ea..23dc910b9a 100644 --- a/ext/posix/tests/posix_errno_variation2.phpt +++ b/ext/posix/tests/posix_errno_variation2.phpt @@ -5,8 +5,8 @@ Morten Amundsen mor10am@gmail.com Francesco Fullone ff@ideato.it #PHPTestFest Cesena Italia on 2009-06-20 --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; if(!extension_loaded("pcntl")) print "skip - PCNTL extension required"; ?> --FILE-- @@ -17,9 +17,9 @@ echo "*** Test by calling function with pid error ***\n"; $pid = 10000; do { - $pid += 1; + $pid += 1; $result = shell_exec("ps -p " . $pid); -} while (strstr($pid, $result)); +} while (strstr($pid, $result)); posix_kill($pid, SIGKILL); var_dump(posix_errno()); diff --git a/ext/posix/tests/posix_get_last_error_error.phpt b/ext/posix/tests/posix_get_last_error_error.phpt index 6cf2161d0c..5400b61598 100644 --- a/ext/posix/tests/posix_get_last_error_error.phpt +++ b/ext/posix/tests/posix_get_last_error_error.phpt @@ -1,13 +1,13 @@ --TEST-- -Test posix_get_last_error() function : error conditions +Test posix_get_last_error() function : error conditions --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php /* Prototype : proto int posix_get_last_error(void) - * Description: Retrieve the error number set by the last posix function which failed. + * Description: Retrieve the error number set by the last posix function which failed. * Source code: ext/posix/posix.c * Alias to functions: posix_errno */ diff --git a/ext/posix/tests/posix_getcwd.phpt b/ext/posix/tests/posix_getcwd.phpt index 75c8d575ba..20f7b0372e 100644 --- a/ext/posix/tests/posix_getcwd.phpt +++ b/ext/posix/tests/posix_getcwd.phpt @@ -2,7 +2,7 @@ posix_getcwd(): Basic tests --SKIPIF-- <?php -if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); if (!function_exists('posix_getcwd')) die('skip posix_getcwd() not found'); ?> --FILE-- diff --git a/ext/posix/tests/posix_getcwd_basic.phpt b/ext/posix/tests/posix_getcwd_basic.phpt index 2477c376a8..9186f5e270 100644 --- a/ext/posix/tests/posix_getcwd_basic.phpt +++ b/ext/posix/tests/posix_getcwd_basic.phpt @@ -2,12 +2,12 @@ posix_getcwd(): Basic tests --SKIPIF-- <?php -if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); if (!function_exists('posix_getcwd')) die('skip posix_getcwd() not found'); ?> --FILE-- <?php -echo "Basic test of POSIX posix_getcwd function\n"; +echo "Basic test of POSIX posix_getcwd function\n"; var_dump(posix_getcwd()); var_dump(posix_getcwd(1)); diff --git a/ext/posix/tests/posix_getegid_basic.phpt b/ext/posix/tests/posix_getegid_basic.phpt index d0016f497f..ab7da5a2c7 100644 --- a/ext/posix/tests/posix_getegid_basic.phpt +++ b/ext/posix/tests/posix_getegid_basic.phpt @@ -4,8 +4,8 @@ Test function posix_getegid() by calling it with its expected arguments Michelangelo van Dam dragonbe@gmail.com #PHPTestFest Dutch PHP Conference 2012 --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php diff --git a/ext/posix/tests/posix_geteuid_basic.phpt b/ext/posix/tests/posix_geteuid_basic.phpt index 76e9028043..f25fc34fd2 100644 --- a/ext/posix/tests/posix_geteuid_basic.phpt +++ b/ext/posix/tests/posix_geteuid_basic.phpt @@ -5,8 +5,8 @@ Marco Fabbri mrfabbri@gmail.com Francesco Fullone ff@ideato.it #PHPTestFest Cesena Italia on 2009-06-20 --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php diff --git a/ext/posix/tests/posix_geteuid_error1.phpt b/ext/posix/tests/posix_geteuid_error1.phpt index ac4e0d5ddc..941005f028 100644 --- a/ext/posix/tests/posix_geteuid_error1.phpt +++ b/ext/posix/tests/posix_geteuid_error1.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_geteuid() by calling it more than or less than its expected arguments --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --CREDITS-- Marco Fabbri mrfabbri@gmail.com diff --git a/ext/posix/tests/posix_getgid_error.phpt b/ext/posix/tests/posix_getgid_error.phpt index bcd7a2fbdf..f02d07413a 100644 --- a/ext/posix/tests/posix_getgid_error.phpt +++ b/ext/posix/tests/posix_getgid_error.phpt @@ -1,15 +1,15 @@ --TEST-- -Test posix_getgid() function : error conditions +Test posix_getgid() function : error conditions --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php /* Prototype : proto int posix_getgid(void) - * Description: Get the current group id (POSIX.1, 4.2.1) + * Description: Get the current group id (POSIX.1, 4.2.1) * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing posix_getgid() : error conditions ***\n"; diff --git a/ext/posix/tests/posix_getgrgid_basic.phpt b/ext/posix/tests/posix_getgrgid_basic.phpt index fdcdf35a42..5759d0034d 100644 --- a/ext/posix/tests/posix_getgrgid_basic.phpt +++ b/ext/posix/tests/posix_getgrgid_basic.phpt @@ -1,18 +1,18 @@ --TEST-- -Test posix_getgrgid() function : basic functionality +Test posix_getgrgid() function : basic functionality --SKIPIF-- -<?php - if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +<?php + if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); ?> --FILE-- -<?php - echo "Basic test of POSIX getgid and getgrid fucntions\n"; - +<?php + echo "Basic test of POSIX getgid and getgrid fucntions\n"; + $gid = posix_getgid(); $groupinfo = posix_getgrgid($gid); - + print_r($groupinfo); - + ?> ===DONE=== --EXPECTF-- diff --git a/ext/posix/tests/posix_getgrgid_error.phpt b/ext/posix/tests/posix_getgrgid_error.phpt index 7fcc8926f4..ef7fa57a9d 100644 --- a/ext/posix/tests/posix_getgrgid_error.phpt +++ b/ext/posix/tests/posix_getgrgid_error.phpt @@ -1,15 +1,15 @@ --TEST-- -Test posix_getgrgid() function : error conditions +Test posix_getgrgid() function : error conditions --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php /* Prototype : proto array posix_getgrgid(long gid) - * Description: Group database access (POSIX.1, 9.2.1) + * Description: Group database access (POSIX.1, 9.2.1) * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing posix_getgrgid() : error conditions ***\n"; diff --git a/ext/posix/tests/posix_getgrgid_variation.phpt b/ext/posix/tests/posix_getgrgid_variation.phpt index 7abd32b97f..d8cce49911 100644 --- a/ext/posix/tests/posix_getgrgid_variation.phpt +++ b/ext/posix/tests/posix_getgrgid_variation.phpt @@ -3,14 +3,14 @@ Test posix_getgrgid() function : usage variations - parameter types --SKIPIF-- <?php PHP_INT_SIZE == 4 or die("skip - 32-bit only"); - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php /* Prototype : proto array posix_getgrgid(long gid) - * Description: Group database access (POSIX.1, 9.2.1) + * Description: Group database access (POSIX.1, 9.2.1) * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing posix_getgrgid() : usage variations ***\n"; @@ -71,8 +71,8 @@ $values = array( foreach($values as $value) { echo "\nArg value $value \n"; $result = posix_getgrgid($value); - if ((is_array($result) && (count($result) == 4)) - || + if ((is_array($result) && (count($result) == 4)) + || ($result === false)) { echo "valid output\n"; } else { diff --git a/ext/posix/tests/posix_getgroups_basic.phpt b/ext/posix/tests/posix_getgroups_basic.phpt index f062468b4f..2d309e61d4 100644 --- a/ext/posix/tests/posix_getgroups_basic.phpt +++ b/ext/posix/tests/posix_getgroups_basic.phpt @@ -1,21 +1,21 @@ --TEST-- -Test posix_getgroups() function : basic functionality +Test posix_getgroups() function : basic functionality --SKIPIF-- -<?php - if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +<?php + if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); ?> --FILE-- -<?php +<?php echo "Basic test of POSIX getgroups\n"; - + $groups = posix_getgroups(); - + if (!is_array($groups)) { - echo "TEST FAILED - array result expected\n"; + echo "TEST FAILED - array result expected\n"; } else { echo "TEST PASSED\n"; - } - + } + ?> ===DONE=== --EXPECT-- diff --git a/ext/posix/tests/posix_getpgid_basic.phpt b/ext/posix/tests/posix_getpgid_basic.phpt index 3195387b75..500bc18cff 100644 --- a/ext/posix/tests/posix_getpgid_basic.phpt +++ b/ext/posix/tests/posix_getpgid_basic.phpt @@ -1,18 +1,18 @@ --TEST-- -Test posix_getpgid() function : basic functionality +Test posix_getpgid() function : basic functionality --SKIPIF-- -<?php - if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +<?php + if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); ?> --FILE-- -<?php - echo "Basic test of posix_getpgid function\n"; - - $pid = posix_getpid(); +<?php + echo "Basic test of posix_getpgid function\n"; + + $pid = posix_getpid(); $pgid = posix_getpgid($pid); - - var_dump($pgid); - + + var_dump($pgid); + ?> ===DONE==== --EXPECTF-- diff --git a/ext/posix/tests/posix_getpgid_error.phpt b/ext/posix/tests/posix_getpgid_error.phpt index b15a3c39b2..88d68554ee 100644 --- a/ext/posix/tests/posix_getpgid_error.phpt +++ b/ext/posix/tests/posix_getpgid_error.phpt @@ -1,17 +1,17 @@ --TEST-- Test posix_getpgid() function : error conditions --SKIPIF-- -<?php +<?php if((!extension_loaded("posix")) || (!function_exists("posix_getpgid"))) { print "skip - POSIX extension not loaded or posix_getpgid() does not exist"; -} +} ?> --FILE-- <?php /* Prototype : proto int posix_getpgid(void) - * Description: Get the process group id of the specified process (This is not a POSIX function, but a SVR4ism, so we compile conditionally) + * Description: Get the process group id of the specified process (This is not a POSIX function, but a SVR4ism, so we compile conditionally) * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing posix_getpgid() : error conditions ***\n"; diff --git a/ext/posix/tests/posix_getpgid_variation.phpt b/ext/posix/tests/posix_getpgid_variation.phpt index 478164c210..00449da8ab 100644 --- a/ext/posix/tests/posix_getpgid_variation.phpt +++ b/ext/posix/tests/posix_getpgid_variation.phpt @@ -1,18 +1,18 @@ --TEST-- -Test posix_getpgid() function : variation +Test posix_getpgid() function : variation --SKIPIF-- -<?php +<?php PHP_INT_SIZE == 4 or die("skip - 32-bit only"); if((!extension_loaded("posix")) || (!function_exists("posix_getpgid"))) { print "skip - POSIX extension not loaded or posix_getpgid() does not exist"; -} +} ?> --FILE-- <?php /* Prototype : proto int posix_getpgid(void) - * Description: Get the process group id of the specified process (This is not a POSIX function, but a SVR4ism, so we compile conditionally) + * Description: Get the process group id of the specified process (This is not a POSIX function, but a SVR4ism, so we compile conditionally) * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing posix_getpgid() : usage variations ***\n"; @@ -63,7 +63,7 @@ $values = array( // unset data $unset_var, - + // object data new stdclass(), ); diff --git a/ext/posix/tests/posix_getpgrp_basic.phpt b/ext/posix/tests/posix_getpgrp_basic.phpt index a737019a2f..f460e347ce 100644 --- a/ext/posix/tests/posix_getpgrp_basic.phpt +++ b/ext/posix/tests/posix_getpgrp_basic.phpt @@ -1,17 +1,17 @@ --TEST-- -Test posix_getpgrp() function : basic functionality +Test posix_getpgrp() function : basic functionality --SKIPIF-- -<?php - if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +<?php + if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); ?> --FILE-- -<?php - echo "Basic test of POSIX getpgrp function\n"; - +<?php + echo "Basic test of POSIX getpgrp function\n"; + $pgrp = posix_getpgrp(); - - var_dump($pgrp); - + + var_dump($pgrp); + ?> ===DONE==== --EXPECTF-- diff --git a/ext/posix/tests/posix_getpgrp_error.phpt b/ext/posix/tests/posix_getpgrp_error.phpt index 97f47ce8ca..6076d688c9 100644 --- a/ext/posix/tests/posix_getpgrp_error.phpt +++ b/ext/posix/tests/posix_getpgrp_error.phpt @@ -1,15 +1,15 @@ --TEST-- -Test posix_getpgrp() function : error conditions +Test posix_getpgrp() function : error conditions --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php /* Prototype : proto int posix_getpgrp(void) - * Description: Get current process group id (POSIX.1, 4.3.1) + * Description: Get current process group id (POSIX.1, 4.3.1) * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing posix_getpgrp() : error conditions ***\n"; diff --git a/ext/posix/tests/posix_getpid_basic.phpt b/ext/posix/tests/posix_getpid_basic.phpt index a1444413ed..40689583b5 100644 --- a/ext/posix/tests/posix_getpid_basic.phpt +++ b/ext/posix/tests/posix_getpid_basic.phpt @@ -1,17 +1,17 @@ --TEST-- -Test posix_getpid() function : basic functionality +Test posix_getpid() function : basic functionality --SKIPIF-- -<?php - if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +<?php + if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); ?> --FILE-- -<?php - echo "Basic test of POSIX getpid function\n"; - +<?php + echo "Basic test of POSIX getpid function\n"; + $pid = posix_getpid(); - - var_dump($pid); - + + var_dump($pid); + ?> ===DONE==== --EXPECTF-- diff --git a/ext/posix/tests/posix_getpid_error.phpt b/ext/posix/tests/posix_getpid_error.phpt index 721bf66996..46131b7c9d 100644 --- a/ext/posix/tests/posix_getpid_error.phpt +++ b/ext/posix/tests/posix_getpid_error.phpt @@ -1,15 +1,15 @@ --TEST-- -Test posix_getpid() function : error conditions +Test posix_getpid() function : error conditions --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php /* Prototype : proto int posix_getpid(void) - * Description: Get the current process id (POSIX.1, 4.1.1) + * Description: Get the current process id (POSIX.1, 4.1.1) * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing posix_getpid() : error conditions ***\n"; diff --git a/ext/posix/tests/posix_getppid_basic.phpt b/ext/posix/tests/posix_getppid_basic.phpt index 2da591c177..8d10afc456 100644 --- a/ext/posix/tests/posix_getppid_basic.phpt +++ b/ext/posix/tests/posix_getppid_basic.phpt @@ -1,17 +1,17 @@ --TEST-- -Test posix_getppid() function : basic functionality +Test posix_getppid() function : basic functionality --SKIPIF-- -<?php - if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +<?php + if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); ?> --FILE-- -<?php - echo "Basic test of POSIX getppid function\n"; - +<?php + echo "Basic test of POSIX getppid function\n"; + $ppid = posix_getppid(); - - var_dump($ppid); - + + var_dump($ppid); + ?> ===DONE==== --EXPECTF-- diff --git a/ext/posix/tests/posix_getppid_error.phpt b/ext/posix/tests/posix_getppid_error.phpt index 366c1ed8dc..d962182ba4 100644 --- a/ext/posix/tests/posix_getppid_error.phpt +++ b/ext/posix/tests/posix_getppid_error.phpt @@ -1,15 +1,15 @@ --TEST-- -Test posix_getppid() function : error conditions +Test posix_getppid() function : error conditions --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php /* Prototype : proto int posix_getppid(void) - * Description: Get the parent process id (POSIX.1, 4.1.1) + * Description: Get the parent process id (POSIX.1, 4.1.1) * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing posix_getppid() : error conditions ***\n"; diff --git a/ext/posix/tests/posix_getpwuid_basic.phpt b/ext/posix/tests/posix_getpwuid_basic.phpt index 1bcd59d0e6..16e0ae1152 100644 --- a/ext/posix/tests/posix_getpwuid_basic.phpt +++ b/ext/posix/tests/posix_getpwuid_basic.phpt @@ -1,18 +1,18 @@ --TEST-- -Test posix_getpwuid() function : basic functionality +Test posix_getpwuid() function : basic functionality --SKIPIF-- -<?php - if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +<?php + if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); ?> --FILE-- -<?php +<?php echo "Basic test of POSIX getpwuid\n"; - - + + $pwuid = posix_getpwuid(posix_getuid()); - + print_r($pwuid); - + ?> ===DONE==== --EXPECTREGEX-- diff --git a/ext/posix/tests/posix_getpwuid_error.phpt b/ext/posix/tests/posix_getpwuid_error.phpt index 4920e4e9da..440edf6a76 100644 --- a/ext/posix/tests/posix_getpwuid_error.phpt +++ b/ext/posix/tests/posix_getpwuid_error.phpt @@ -1,15 +1,15 @@ --TEST-- -Test posix_getpwuid() function : error conditions +Test posix_getpwuid() function : error conditions --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php /* Prototype : proto array posix_getpwuid(long uid) - * Description: User database access (POSIX.1, 9.2.2) + * Description: User database access (POSIX.1, 9.2.2) * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing posix_getpwuid() : error conditions ***\n"; diff --git a/ext/posix/tests/posix_getpwuid_variation.phpt b/ext/posix/tests/posix_getpwuid_variation.phpt index fa000f5b8a..0a0ad64051 100644 --- a/ext/posix/tests/posix_getpwuid_variation.phpt +++ b/ext/posix/tests/posix_getpwuid_variation.phpt @@ -3,14 +3,14 @@ Test posix_getpwuid() function : usage variations - parameter types --SKIPIF-- <?php PHP_INT_SIZE == 4 or die("skip - 32-bit only"); - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php /* Prototype : proto array posix_getpwuid(long uid) - * Description: User database access (POSIX.1, 9.2.2) + * Description: User database access (POSIX.1, 9.2.2) * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing posix_getpwuid() : usage variations ***\n"; @@ -61,7 +61,7 @@ $values = array( // unset data $unset_var, - + // object data new stdclass(), ); @@ -71,8 +71,8 @@ $values = array( foreach($values as $value) { echo "\nArg value $value \n"; $result = posix_getpwuid($value); - if ((is_array($result) && (count($result) == 7)) - || + if ((is_array($result) && (count($result) == 7)) + || ($result === false)) { echo "valid output\n"; } else { diff --git a/ext/posix/tests/posix_getrlimit.phpt b/ext/posix/tests/posix_getrlimit.phpt index 61da64a938..8cfc7575a4 100644 --- a/ext/posix/tests/posix_getrlimit.phpt +++ b/ext/posix/tests/posix_getrlimit.phpt @@ -2,7 +2,7 @@ posix_getrlimit(): Basic tests --SKIPIF-- <?php -if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); if (!function_exists('posix_getrlimit')) die('skip posix_getrlimit() not found'); ?> --FILE-- diff --git a/ext/posix/tests/posix_getrlimit_basic.phpt b/ext/posix/tests/posix_getrlimit_basic.phpt index 7fdd0e7e4b..bace9fd5ee 100644 --- a/ext/posix/tests/posix_getrlimit_basic.phpt +++ b/ext/posix/tests/posix_getrlimit_basic.phpt @@ -2,12 +2,12 @@ posix_getrlimit(): Basic tests --SKIPIF-- <?php -if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); if (!function_exists('posix_getrlimit')) die('skip posix_getrlimit() not found'); ?> --FILE-- <?php -echo "Basic test of POSIX posix_getrlimit function\n"; +echo "Basic test of POSIX posix_getrlimit function\n"; var_dump(posix_getrlimit()); ?> diff --git a/ext/posix/tests/posix_getsid.phpt b/ext/posix/tests/posix_getsid.phpt index 62ed3c9ebd..5b7fc04118 100644 --- a/ext/posix/tests/posix_getsid.phpt +++ b/ext/posix/tests/posix_getsid.phpt @@ -1,14 +1,14 @@ --TEST-- Test posix_getsid() function test --DESCRIPTION-- -Get the current session id of a process pid (POSIX.1, 4.2.1) +Get the current session id of a process pid (POSIX.1, 4.2.1) Source code: ext/posix/posix.c --CREDITS-- Moritz Neuhaeuser, info@xcompile.net PHP Testfest Berlin 2009-05-10 --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "SKIP - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "SKIP - POSIX extension not loaded"; ?> --FILE-- <?php diff --git a/ext/posix/tests/posix_getsid_basic.phpt b/ext/posix/tests/posix_getsid_basic.phpt index a53e1df8b3..5bf362efd4 100644 --- a/ext/posix/tests/posix_getsid_basic.phpt +++ b/ext/posix/tests/posix_getsid_basic.phpt @@ -1,18 +1,18 @@ --TEST-- -Test posix_getsid() function : basic functionality +Test posix_getsid() function : basic functionality --SKIPIF-- -<?php - if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +<?php + if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); ?> --FILE-- -<?php - echo "Basic test of posix_getsid function\n"; - - $pid = posix_getpid(); +<?php + echo "Basic test of posix_getsid function\n"; + + $pid = posix_getpid(); $sid = posix_getsid($pid); - - var_dump($sid); - + + var_dump($sid); + ?> ===DONE==== --EXPECTF-- diff --git a/ext/posix/tests/posix_getsid_error.phpt b/ext/posix/tests/posix_getsid_error.phpt index 9d2a259624..696595bfde 100644 --- a/ext/posix/tests/posix_getsid_error.phpt +++ b/ext/posix/tests/posix_getsid_error.phpt @@ -1,14 +1,14 @@ --TEST-- -Test posix_getsid() function : error conditions +Test posix_getsid() function : error conditions --DESCRIPTION-- cases: no params, wrong param, wrong param range --CREDITS-- Moritz Neuhaeuser, info@xcompile.net PHP Testfest Berlin 2009-05-10 --SKIPIF-- -<?php +<?php if(!extension_loaded("posix")) { - die("SKIP - POSIX extension not loaded"); + die("SKIP - POSIX extension not loaded"); } ?> --FILE-- diff --git a/ext/posix/tests/posix_getuid_error.phpt b/ext/posix/tests/posix_getuid_error.phpt index 42a35512a0..8954108c32 100644 --- a/ext/posix/tests/posix_getuid_error.phpt +++ b/ext/posix/tests/posix_getuid_error.phpt @@ -1,15 +1,15 @@ --TEST-- -Test posix_getuid() function : error conditions +Test posix_getuid() function : error conditions --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php /* Prototype : proto int posix_getuid(void) - * Description: Get the current user id (POSIX.1, 4.2.1) + * Description: Get the current user id (POSIX.1, 4.2.1) * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing posix_getuid() : error conditions ***\n"; diff --git a/ext/posix/tests/posix_initgroups.phpt b/ext/posix/tests/posix_initgroups.phpt index e7db4a6794..3e464df084 100644 --- a/ext/posix/tests/posix_initgroups.phpt +++ b/ext/posix/tests/posix_initgroups.phpt @@ -2,7 +2,7 @@ posix_initgroups(): Basic tests --SKIPIF-- <?php -if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); if (!function_exists('posix_initgroups')) die('skip posix_initgroups() not found'); ?> --FILE-- diff --git a/ext/posix/tests/posix_initgroups_basic.phpt b/ext/posix/tests/posix_initgroups_basic.phpt index afed610335..5799f3c722 100644 --- a/ext/posix/tests/posix_initgroups_basic.phpt +++ b/ext/posix/tests/posix_initgroups_basic.phpt @@ -2,12 +2,12 @@ posix_initgroups(): Basic tests --SKIPIF-- <?php -if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); if (!function_exists('posix_initgroups')) die('skip posix_initgroups() not found'); ?> --FILE-- <?php -echo "Basic test of POSIX posix_initgroups function\n"; +echo "Basic test of POSIX posix_initgroups function\n"; var_dump(posix_initgroups('foo', 'bar')); var_dump(posix_initgroups(NULL, NULL)); diff --git a/ext/posix/tests/posix_isatty.phpt b/ext/posix/tests/posix_isatty.phpt index 0b40dd1d43..011a636e64 100644 --- a/ext/posix/tests/posix_isatty.phpt +++ b/ext/posix/tests/posix_isatty.phpt @@ -2,7 +2,7 @@ posix_isatty(): Basic tests --SKIPIF-- <?php -if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); if (!function_exists('posix_isatty')) die('skip posix_isatty() not found'); ?> --FILE-- diff --git a/ext/posix/tests/posix_kill_basic.phpt b/ext/posix/tests/posix_kill_basic.phpt index b68d3cb5db..b73e73c476 100644 --- a/ext/posix/tests/posix_kill_basic.phpt +++ b/ext/posix/tests/posix_kill_basic.phpt @@ -1,32 +1,32 @@ --TEST-- -Test posix_kill(), posix_get_last_error and posix_strerror() functions : basic functionality +Test posix_kill(), posix_get_last_error and posix_strerror() functions : basic functionality --SKIPIF-- -<?php - if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +<?php + if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); ?> --FILE-- -<?php - echo "Basic test of POSIX getpgid(), kill(), get_last_error() and strerror() functions\n"; - +<?php + echo "Basic test of POSIX getpgid(), kill(), get_last_error() and strerror() functions\n"; + // Don't rely on PCNTL extension being around $SIGKILL = 9; - + // TODO Once we have PS open working beef up this test to create a process and kill it // for now start at a low pid and find first pid which does not exist. $pid = 999; do { - $pid += 1; + $pid += 1; $result = shell_exec("ps -p " . $pid); - } while (stripos($result, (string)$pid) != FALSE); - + } while (stripos($result, (string)$pid) != FALSE); + echo "Kill pid=" . $pid . "\n"; var_dump(posix_kill($pid,$SIGKILL)); - - $errno = posix_get_last_error(); - + + $errno = posix_get_last_error(); + var_dump($errno); var_dump(posix_strerror($errno)); - + ?> ===DONE==== --EXPECTF-- diff --git a/ext/posix/tests/posix_kill_error.phpt b/ext/posix/tests/posix_kill_error.phpt index 082b21d6ad..0c8f6ef642 100644 --- a/ext/posix/tests/posix_kill_error.phpt +++ b/ext/posix/tests/posix_kill_error.phpt @@ -1,15 +1,15 @@ --TEST-- -Test posix_kill() function : error conditions +Test posix_kill() function : error conditions --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php /* Prototype : proto bool posix_kill(int pid, int sig) - * Description: Send a signal to a process (POSIX.1, 3.3.2) + * Description: Send a signal to a process (POSIX.1, 3.3.2) * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ diff --git a/ext/posix/tests/posix_kill_variation1.phpt b/ext/posix/tests/posix_kill_variation1.phpt index d26f11df03..ca6602f259 100644 --- a/ext/posix/tests/posix_kill_variation1.phpt +++ b/ext/posix/tests/posix_kill_variation1.phpt @@ -3,14 +3,14 @@ Test posix_kill() function : usage variations - first parameter type --SKIPIF-- <?php PHP_INT_SIZE == 4 or die("skip - 32-bit only"); - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php /* Prototype : proto bool posix_kill(int pid, int sig) - * Description: Send a signal to a process (POSIX.1, 3.3.2) + * Description: Send a signal to a process (POSIX.1, 3.3.2) * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing posix_kill() : usage variations ***\n"; @@ -62,7 +62,7 @@ $values = array( // unset data $unset_var, - + // object data new stdclass(), ); diff --git a/ext/posix/tests/posix_kill_variation2.phpt b/ext/posix/tests/posix_kill_variation2.phpt index 399151a7ed..61baf7e6a4 100644 --- a/ext/posix/tests/posix_kill_variation2.phpt +++ b/ext/posix/tests/posix_kill_variation2.phpt @@ -1,16 +1,16 @@ --TEST-- Test posix_kill() function : usage variations - second parameter type --SKIPIF-- -<?php +<?php PHP_INT_SIZE == 4 or die("skip - 32-bit only"); - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php /* Prototype : proto bool posix_kill(int pid, int sig) - * Description: Send a signal to a process (POSIX.1, 3.3.2) + * Description: Send a signal to a process (POSIX.1, 3.3.2) * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing posix_kill() : usage variations ***\n"; @@ -62,7 +62,7 @@ $values = array( // unset data $unset_var, - + // object data new stdclass(), ); diff --git a/ext/posix/tests/posix_mknod.phpt b/ext/posix/tests/posix_mknod.phpt index 4044fb98d9..a238f18186 100644 --- a/ext/posix/tests/posix_mknod.phpt +++ b/ext/posix/tests/posix_mknod.phpt @@ -2,7 +2,7 @@ posix_mknod(): Basic tests --SKIPIF-- <?php -if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); if (!function_exists('posix_mknod')) die('skip posix_mknod() not found'); ?> --FILE-- diff --git a/ext/posix/tests/posix_mknod_basic.phpt b/ext/posix/tests/posix_mknod_basic.phpt index bc35156460..e95aa301fd 100644 --- a/ext/posix/tests/posix_mknod_basic.phpt +++ b/ext/posix/tests/posix_mknod_basic.phpt @@ -2,12 +2,12 @@ posix_mknod(): Basic tests --SKIPIF-- <?php -if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); if (!function_exists('posix_mknod')) die('skip posix_mknod() not found'); ?> --FILE-- <?php -echo "Basic test of POSIX posix_mknod function\n"; +echo "Basic test of POSIX posix_mknod function\n"; var_dump(posix_mknod(NULL, NULL, NULL, NULL)); ?> diff --git a/ext/posix/tests/posix_setegid_basic.phpt b/ext/posix/tests/posix_setegid_basic.phpt index 729abc5f54..c5c98b1a49 100644 --- a/ext/posix/tests/posix_setegid_basic.phpt +++ b/ext/posix/tests/posix_setegid_basic.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_setegid() by calling it with its expected arguments --SKIPIF-- -<?php - if(!extension_loaded("posix")) die("skip - POSIX extension not loaded"); +<?php + if(!extension_loaded("posix")) die("skip - POSIX extension not loaded"); ?> --FILE-- <?php diff --git a/ext/posix/tests/posix_seteuid_basic.phpt b/ext/posix/tests/posix_seteuid_basic.phpt index 204ebe8d07..49c4f5c449 100644 --- a/ext/posix/tests/posix_seteuid_basic.phpt +++ b/ext/posix/tests/posix_seteuid_basic.phpt @@ -5,8 +5,8 @@ Marco Fabbri mrfabbri@gmail.com Francesco Fullone ff@ideato.it #PHPTestFest Cesena Italia on 2009-06-20 --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php diff --git a/ext/posix/tests/posix_seteuid_error.phpt b/ext/posix/tests/posix_seteuid_error.phpt index b10e41075e..1ac3a38226 100644 --- a/ext/posix/tests/posix_seteuid_error.phpt +++ b/ext/posix/tests/posix_seteuid_error.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_seteuid() by calling it more than or less than its expected arguments --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --CREDITS-- Marco Fabbri mrfabbri@gmail.com diff --git a/ext/posix/tests/posix_seteuid_error2.phpt b/ext/posix/tests/posix_seteuid_error2.phpt index cf724c13a5..6e1222aab3 100644 --- a/ext/posix/tests/posix_seteuid_error2.phpt +++ b/ext/posix/tests/posix_seteuid_error2.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_seteuid() by substituting argument 1 with object values. --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --CREDITS-- Marco Fabbri mrfabbri@gmail.com diff --git a/ext/posix/tests/posix_seteuid_variation1.phpt b/ext/posix/tests/posix_seteuid_variation1.phpt index 44546c47bf..1c823bd8d9 100644 --- a/ext/posix/tests/posix_seteuid_variation1.phpt +++ b/ext/posix/tests/posix_seteuid_variation1.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_seteuid() by substituting argument 1 with array values. --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --CREDITS-- Marco Fabbri mrfabbri@gmail.com diff --git a/ext/posix/tests/posix_seteuid_variation2.phpt b/ext/posix/tests/posix_seteuid_variation2.phpt index bcba394385..eafc366a00 100644 --- a/ext/posix/tests/posix_seteuid_variation2.phpt +++ b/ext/posix/tests/posix_seteuid_variation2.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_seteuid() by substituting argument 1 with boolean values. --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; if(posix_geteuid() == 0) print "skip - Cannot run test as root."; ?> --CREDITS-- diff --git a/ext/posix/tests/posix_seteuid_variation3.phpt b/ext/posix/tests/posix_seteuid_variation3.phpt index 413c6c21bd..25adbd4a72 100644 --- a/ext/posix/tests/posix_seteuid_variation3.phpt +++ b/ext/posix/tests/posix_seteuid_variation3.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_seteuid() by substituting argument 1 with emptyUnsetUndefNull values. --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; if(posix_geteuid() == 0) print "skip - Cannot run test as root."; ?> --CREDITS-- diff --git a/ext/posix/tests/posix_seteuid_variation4.phpt b/ext/posix/tests/posix_seteuid_variation4.phpt index 7dc10f85c7..dff46ea5e9 100644 --- a/ext/posix/tests/posix_seteuid_variation4.phpt +++ b/ext/posix/tests/posix_seteuid_variation4.phpt @@ -1,9 +1,9 @@ --TEST-- Test function posix_seteuid() by substituting argument 1 with float values. --SKIPIF-- -<?php +<?php PHP_INT_SIZE == 4 or die("skip - 32-bit only"); - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; if(posix_geteuid() == 0) print "skip - Cannot run test as root."; ?> --CREDITS-- diff --git a/ext/posix/tests/posix_seteuid_variation5.phpt b/ext/posix/tests/posix_seteuid_variation5.phpt index 8e43e1a152..5a102d4e03 100644 --- a/ext/posix/tests/posix_seteuid_variation5.phpt +++ b/ext/posix/tests/posix_seteuid_variation5.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_seteuid() by substituting argument 1 with int values. --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; if(posix_geteuid() == 0) print "skip - Cannot run test as root."; ?> --CREDITS-- diff --git a/ext/posix/tests/posix_seteuid_variation6.phpt b/ext/posix/tests/posix_seteuid_variation6.phpt index 10fd2a81b6..9a3b241d21 100644 --- a/ext/posix/tests/posix_seteuid_variation6.phpt +++ b/ext/posix/tests/posix_seteuid_variation6.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_seteuid() by substituting argument 1 with string values. --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --CREDITS-- Marco Fabbri mrfabbri@gmail.com diff --git a/ext/posix/tests/posix_setgid_basic.phpt b/ext/posix/tests/posix_setgid_basic.phpt index da3751fea4..a1f4b41869 100644 --- a/ext/posix/tests/posix_setgid_basic.phpt +++ b/ext/posix/tests/posix_setgid_basic.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_setgid() by calling it with its expected arguments --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --CREDITS-- Marco Fabbri mrfabbri@gmail.com diff --git a/ext/posix/tests/posix_setgid_error.phpt b/ext/posix/tests/posix_setgid_error.phpt index 83d727c58a..169bd9f9ab 100644 --- a/ext/posix/tests/posix_setgid_error.phpt +++ b/ext/posix/tests/posix_setgid_error.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_setgid() by calling it more than or less than its expected arguments. --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> Marco Fabbri mrfabbri@gmail.com Francesco Fullone ff@ideato.it diff --git a/ext/posix/tests/posix_setgid_variation1.phpt b/ext/posix/tests/posix_setgid_variation1.phpt index 64b83ec3cd..b4a511c8e3 100644 --- a/ext/posix/tests/posix_setgid_variation1.phpt +++ b/ext/posix/tests/posix_setgid_variation1.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_setgid() by substituting argument 1 with array values. --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --CREDITS-- Marco Fabbri mrfabbri@gmail.com diff --git a/ext/posix/tests/posix_setgid_variation2.phpt b/ext/posix/tests/posix_setgid_variation2.phpt index b8e50bad4d..6d4adb5a5a 100644 --- a/ext/posix/tests/posix_setgid_variation2.phpt +++ b/ext/posix/tests/posix_setgid_variation2.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_setgid() by substituting argument 1 with boolean values. --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; if(posix_geteuid() == 0) print "skip - Cannot run test as root."; ?> --CREDITS-- diff --git a/ext/posix/tests/posix_setgid_variation4.phpt b/ext/posix/tests/posix_setgid_variation4.phpt index 15d3cf56d8..94bfa68a5e 100644 --- a/ext/posix/tests/posix_setgid_variation4.phpt +++ b/ext/posix/tests/posix_setgid_variation4.phpt @@ -1,9 +1,9 @@ --TEST-- Test function posix_setgid() by substituting argument 1 with float values. --SKIPIF-- -<?php +<?php PHP_INT_SIZE == 4 or die("skip - 32-bit only"); - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; if(posix_geteuid() == 0) print "skip - Cannot run test as root."; ?> --CREDITS-- diff --git a/ext/posix/tests/posix_setgid_variation5.phpt b/ext/posix/tests/posix_setgid_variation5.phpt index 49e98ec8eb..e447b87e27 100644 --- a/ext/posix/tests/posix_setgid_variation5.phpt +++ b/ext/posix/tests/posix_setgid_variation5.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_setgid() by substituting argument 1 with int values. --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; if(posix_geteuid() == 0) print "skip - Cannot run test as root."; ?> --CREDITS-- diff --git a/ext/posix/tests/posix_setgid_variation6.phpt b/ext/posix/tests/posix_setgid_variation6.phpt index a711d05c9a..70882d5b4a 100644 --- a/ext/posix/tests/posix_setgid_variation6.phpt +++ b/ext/posix/tests/posix_setgid_variation6.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_setgid() by substituting argument 1 with object values. --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --CREDITS-- Marco Fabbri mrfabbri@gmail.com diff --git a/ext/posix/tests/posix_setrlimit.phpt b/ext/posix/tests/posix_setrlimit.phpt index 4806fcfb4d..88d62a2d2f 100644 --- a/ext/posix/tests/posix_setrlimit.phpt +++ b/ext/posix/tests/posix_setrlimit.phpt @@ -2,7 +2,7 @@ posix_setrlimit(): Basic tests --SKIPIF-- <?php -if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); if (!function_exists('posix_setrlimit')) die('skip posix_setrlimit() not found'); ?> --FILE-- diff --git a/ext/posix/tests/posix_setuid_basic.phpt b/ext/posix/tests/posix_setuid_basic.phpt index 986b0be62c..3d3f7f8cae 100644 --- a/ext/posix/tests/posix_setuid_basic.phpt +++ b/ext/posix/tests/posix_setuid_basic.phpt @@ -5,8 +5,8 @@ Marco Fabbri mrfabbri@gmail.com Francesco Fullone ff@ideato.it #PHPTestFest Cesena Italia on 2009-06-20 --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php diff --git a/ext/posix/tests/posix_setuid_error.phpt b/ext/posix/tests/posix_setuid_error.phpt index 8aa51586a4..f1522e663c 100644 --- a/ext/posix/tests/posix_setuid_error.phpt +++ b/ext/posix/tests/posix_setuid_error.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_setuid() by calling it more than or less than its expected arguments --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --CREDITS-- Marco Fabbri mrfabbri@gmail.com diff --git a/ext/posix/tests/posix_setuid_error2.phpt b/ext/posix/tests/posix_setuid_error2.phpt index 5473f48897..697bd5b754 100644 --- a/ext/posix/tests/posix_setuid_error2.phpt +++ b/ext/posix/tests/posix_setuid_error2.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_setuid() by substituting argument 1 with object values. --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --CREDITS-- Marco Fabbri mrfabbri@gmail.com diff --git a/ext/posix/tests/posix_setuid_variation1.phpt b/ext/posix/tests/posix_setuid_variation1.phpt index 6748d7b9e8..94f13fbb10 100644 --- a/ext/posix/tests/posix_setuid_variation1.phpt +++ b/ext/posix/tests/posix_setuid_variation1.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_setuid() by substituting argument 1 with array values. --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --CREDITS-- Marco Fabbri mrfabbri@gmail.com diff --git a/ext/posix/tests/posix_setuid_variation2.phpt b/ext/posix/tests/posix_setuid_variation2.phpt index 77505a64f7..f3d697b7b4 100644 --- a/ext/posix/tests/posix_setuid_variation2.phpt +++ b/ext/posix/tests/posix_setuid_variation2.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_setuid() by substituting argument 1 with boolean values. --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; if(posix_geteuid() == 0) print "skip - Cannot run test as root."; ?> --CREDITS-- diff --git a/ext/posix/tests/posix_setuid_variation3.phpt b/ext/posix/tests/posix_setuid_variation3.phpt index 0042b72ee3..9cef49876a 100644 --- a/ext/posix/tests/posix_setuid_variation3.phpt +++ b/ext/posix/tests/posix_setuid_variation3.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_setuid() by substituting argument 1 with emptyUnsetUndefNull values. --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; if(posix_geteuid() == 0) print "skip - Cannot run test as root."; ?> --CREDITS-- diff --git a/ext/posix/tests/posix_setuid_variation4.phpt b/ext/posix/tests/posix_setuid_variation4.phpt index 185ef8f53c..dd552148cd 100644 --- a/ext/posix/tests/posix_setuid_variation4.phpt +++ b/ext/posix/tests/posix_setuid_variation4.phpt @@ -1,9 +1,9 @@ --TEST-- Test function posix_setuid() by substituting argument 1 with float values. --SKIPIF-- -<?php +<?php PHP_INT_SIZE == 4 or die("skip - 32-bit only"); - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; if(posix_geteuid() == 0) print "skip - Cannot run test as root."; ?> --CREDITS-- diff --git a/ext/posix/tests/posix_setuid_variation5.phpt b/ext/posix/tests/posix_setuid_variation5.phpt index a4ebe63395..09320b0cd9 100644 --- a/ext/posix/tests/posix_setuid_variation5.phpt +++ b/ext/posix/tests/posix_setuid_variation5.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_setuid() by substituting argument 1 with int values. --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; if(posix_geteuid() == 0) print "skip - Cannot run test as root."; ?> --CREDITS-- diff --git a/ext/posix/tests/posix_setuid_variation6.phpt b/ext/posix/tests/posix_setuid_variation6.phpt index 0536b8d199..f3f421593f 100644 --- a/ext/posix/tests/posix_setuid_variation6.phpt +++ b/ext/posix/tests/posix_setuid_variation6.phpt @@ -1,8 +1,8 @@ --TEST-- Test function posix_setuid() by substituting argument 1 with string values. --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --CREDITS-- Marco Fabbri mrfabbri@gmail.com diff --git a/ext/posix/tests/posix_strerror_error.phpt b/ext/posix/tests/posix_strerror_error.phpt index 3803f465b2..3007f976c6 100644 --- a/ext/posix/tests/posix_strerror_error.phpt +++ b/ext/posix/tests/posix_strerror_error.phpt @@ -1,15 +1,15 @@ --TEST-- -Test posix_strerror() function : error conditions +Test posix_strerror() function : error conditions --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php /* Prototype : proto string posix_strerror(int errno) - * Description: Retrieve the system error message associated with the given errno. + * Description: Retrieve the system error message associated with the given errno. * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing posix_strerror() : error conditions ***\n"; diff --git a/ext/posix/tests/posix_strerror_variation1.phpt b/ext/posix/tests/posix_strerror_variation1.phpt index 40fff34be8..e95ca55b85 100644 --- a/ext/posix/tests/posix_strerror_variation1.phpt +++ b/ext/posix/tests/posix_strerror_variation1.phpt @@ -3,14 +3,14 @@ Test posix_strerror() function : usage variations --SKIPIF-- <?php PHP_INT_SIZE == 4 or die("skip - 32-bit only"); - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php /* Prototype : proto string posix_strerror(int errno) - * Description: Retrieve the system error message associated with the given errno. + * Description: Retrieve the system error message associated with the given errno. * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing posix_strerror() : usage variations ***\n"; @@ -61,7 +61,7 @@ $values = array( // unset data $unset_var, - + // object data new stdclass(), ); diff --git a/ext/posix/tests/posix_times.phpt b/ext/posix/tests/posix_times.phpt index 6ad3407ccb..f75caa7920 100644 --- a/ext/posix/tests/posix_times.phpt +++ b/ext/posix/tests/posix_times.phpt @@ -7,8 +7,8 @@ Source code: ext/posix/posix.c Falko Menge, mail at falko-menge dot de PHP Testfest Berlin 2009-05-10 --SKIPIF-- -<?php - if (!extension_loaded('posix')) { +<?php + if (!extension_loaded('posix')) { die('SKIP - POSIX extension not available'); } ?> diff --git a/ext/posix/tests/posix_times_basic.phpt b/ext/posix/tests/posix_times_basic.phpt index 5da6434b14..ad37834fd9 100644 --- a/ext/posix/tests/posix_times_basic.phpt +++ b/ext/posix/tests/posix_times_basic.phpt @@ -1,23 +1,23 @@ --TEST-- -Test posix_times() function : basic functionality +Test posix_times() function : basic functionality --SKIPIF-- -<?php - if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +<?php + if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); ?> --FILE-- -<?php - echo "Basic test of POSIX times function\n"; - +<?php + echo "Basic test of POSIX times function\n"; + $times = posix_times(); - - var_dump($times); - - + + var_dump($times); + + if ($times == FALSE) { $errno= posix_get_last_error(); - var_dump(posix_strerror($errno)); + var_dump(posix_strerror($errno)); } - + ?> ===DONE==== --EXPECTF-- diff --git a/ext/posix/tests/posix_times_error.phpt b/ext/posix/tests/posix_times_error.phpt index b705047358..0f8a9e3601 100644 --- a/ext/posix/tests/posix_times_error.phpt +++ b/ext/posix/tests/posix_times_error.phpt @@ -1,15 +1,15 @@ --TEST-- -Test posix_times() function : error conditions +Test posix_times() function : error conditions --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php /* Prototype : proto array posix_times(void) - * Description: Get process times (POSIX.1, 4.5.2) + * Description: Get process times (POSIX.1, 4.5.2) * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing posix_times() : error conditions ***\n"; diff --git a/ext/posix/tests/posix_ttyname.phpt b/ext/posix/tests/posix_ttyname.phpt index 76dff4e4c0..bfaf63861c 100644 --- a/ext/posix/tests/posix_ttyname.phpt +++ b/ext/posix/tests/posix_ttyname.phpt @@ -7,8 +7,8 @@ Source code: ext/posix/posix.c Falko Menge, mail at falko-menge dot de PHP Testfest Berlin 2009-05-10 --SKIPIF-- -<?php - if (!extension_loaded('posix')) { +<?php + if (!extension_loaded('posix')) { die('SKIP - POSIX extension not available'); } ?> diff --git a/ext/posix/tests/posix_ttyname_error.phpt b/ext/posix/tests/posix_ttyname_error.phpt index f7b011e773..effa709717 100644 --- a/ext/posix/tests/posix_ttyname_error.phpt +++ b/ext/posix/tests/posix_ttyname_error.phpt @@ -17,7 +17,7 @@ if (!extension_loaded('posix')) { echo "*** Test by calling method or function with incorrect numbers of arguments ***\n"; $fd = 'foo'; -$extra_arg = 'bar'; +$extra_arg = 'bar'; var_dump(posix_ttyname( $fd, $extra_arg ) ); diff --git a/ext/posix/tests/posix_ttyname_error_wrongparams.phpt b/ext/posix/tests/posix_ttyname_error_wrongparams.phpt index daa487f853..787e49c0f7 100644 --- a/ext/posix/tests/posix_ttyname_error_wrongparams.phpt +++ b/ext/posix/tests/posix_ttyname_error_wrongparams.phpt @@ -7,11 +7,11 @@ Source code: ext/posix/posix.c Falko Menge, mail at falko-menge dot de PHP Testfest Berlin 2009-05-10 --SKIPIF-- -<?php - if (!extension_loaded('posix')) { +<?php + if (!extension_loaded('posix')) { die('SKIP - POSIX extension not available'); } - if (!extension_loaded('gd')) { + if (!extension_loaded('gd')) { die('SKIP - GD extension not available'); } if (!function_exists('imagecreate')) { diff --git a/ext/posix/tests/posix_uname_basic.phpt b/ext/posix/tests/posix_uname_basic.phpt index 6bd5b100ee..c48694579a 100644 --- a/ext/posix/tests/posix_uname_basic.phpt +++ b/ext/posix/tests/posix_uname_basic.phpt @@ -1,17 +1,17 @@ --TEST-- -Test posix_uname() function : basic functionality +Test posix_uname() function : basic functionality --SKIPIF-- -<?php - if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +<?php + if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); ?> --FILE-- -<?php - echo "Basic test of POSIX uname function\n"; - - $uname = posix_uname(); - unset($uname['domainname']); +<?php + echo "Basic test of POSIX uname function\n"; + + $uname = posix_uname(); + unset($uname['domainname']); print_r($uname); - + ?> ===DONE==== --EXPECTF-- diff --git a/ext/posix/tests/posix_uname_error.phpt b/ext/posix/tests/posix_uname_error.phpt index b44f4ae8ca..09c435fe69 100644 --- a/ext/posix/tests/posix_uname_error.phpt +++ b/ext/posix/tests/posix_uname_error.phpt @@ -1,15 +1,15 @@ --TEST-- -Test posix_uname() function : error conditions +Test posix_uname() function : error conditions --SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; +<?php + if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --FILE-- <?php /* Prototype : proto array posix_uname(void) - * Description: Get system name (POSIX.1, 4.4.1) + * Description: Get system name (POSIX.1, 4.4.1) * Source code: ext/posix/posix.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing posix_uname() : error conditions ***\n"; |