rasmus                                   Mon, 23 Nov 2009 21:13:26 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=291232

Log:
This will only get a permission defined error if not running as root.

Changed paths:
    U   php/php-src/branches/PHP_5_2/ext/posix/tests/posix_errno_variation1.phpt
    U   php/php-src/branches/PHP_5_3/ext/posix/tests/posix_errno_variation1.phpt

Modified: 
php/php-src/branches/PHP_5_2/ext/posix/tests/posix_errno_variation1.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/ext/posix/tests/posix_errno_variation1.phpt    
2009-11-23 21:11:37 UTC (rev 291231)
+++ php/php-src/branches/PHP_5_2/ext/posix/tests/posix_errno_variation1.phpt    
2009-11-23 21:13:26 UTC (rev 291232)
@@ -7,6 +7,7 @@
 --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

Modified: 
php/php-src/branches/PHP_5_3/ext/posix/tests/posix_errno_variation1.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/posix/tests/posix_errno_variation1.phpt    
2009-11-23 21:11:37 UTC (rev 291231)
+++ php/php-src/branches/PHP_5_3/ext/posix/tests/posix_errno_variation1.phpt    
2009-11-23 21:13:26 UTC (rev 291232)
@@ -7,6 +7,7 @@
 --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

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to