diff options
Diffstat (limited to 'ext/posix/tests/posix_getpwuid_variation.phpt')
| -rw-r--r-- | ext/posix/tests/posix_getpwuid_variation.phpt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/posix/tests/posix_getpwuid_variation.phpt b/ext/posix/tests/posix_getpwuid_variation.phpt index 9bcddea832..27b4ca956f 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,7 +71,7 @@ $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"; |
