diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2009-11-23 21:13:26 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2009-11-23 21:13:26 +0000 |
commit | daf47a85196f9bc07f804b65a0ed468ed22bb360 (patch) | |
tree | 0a94466bfb0eb0f3182f4f75ab7569104719ddc0 /ext/posix | |
parent | 8af473e4963a5f1ff4be6232eef36990b56dacd9 (diff) | |
download | php-git-daf47a85196f9bc07f804b65a0ed468ed22bb360.tar.gz |
This will only get a permission defined error if not running as root.
Diffstat (limited to 'ext/posix')
-rw-r--r-- | ext/posix/tests/posix_errno_variation1.phpt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/posix/tests/posix_errno_variation1.phpt b/ext/posix/tests/posix_errno_variation1.phpt index aa9889f7fe..b57b7c0cac 100644 --- a/ext/posix/tests/posix_errno_variation1.phpt +++ b/ext/posix/tests/posix_errno_variation1.phpt @@ -7,6 +7,7 @@ Francesco Fullone ff@ideato.it --SKIPIF-- <?php if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; + if(posix_getuid()==0) print "skip - Cannot run test as root."; ?> --FILE-- <?php |