]> granicus.if.org Git - php/commitdiff
This will only get a permission defined error if not running as root.
authorRasmus Lerdorf <rasmus@php.net>
Mon, 23 Nov 2009 21:13:26 +0000 (21:13 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Mon, 23 Nov 2009 21:13:26 +0000 (21:13 +0000)
ext/posix/tests/posix_errno_variation1.phpt

index aa9889f7fef2e43739909de0735d8b0055fc4b6b..b57b7c0cac0d4d7f269d43c9e708c2e809a083f6 100644 (file)
@@ -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