svn: /php/php-src/branches/ PHP_5_2/ext/posix/tests/posix_errno_variation1.phpt PHP_5_3/ext/posix/tests/posix_errno_variation1.phpt
| From: | Rasmus Lerdorf | Date: | Mon, 23 Nov 2009 21:13:26 +0000 |
| Subject: | svn: /php/php-src/branches/ PHP_5_2/ext/posix/tests/posix_errno_variation1.phpt PHP_5_3/ext/posix/tests/posix_errno_variation1.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-60982@lists.php.net to get a copy of this message | ||
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