]> granicus.if.org Git - php/commitdiff
check for posix_getuid()
authorAntony Dovgal <tony2001@php.net>
Fri, 11 Jul 2008 09:15:37 +0000 (09:15 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 11 Jul 2008 09:15:37 +0000 (09:15 +0000)
ext/standard/tests/file/lchown_basic.phpt
ext/standard/tests/file/lchown_error.phpt

index 0b7edb6fdedcc00f514aaaed9d99fc31c846ff79..411a64a4db470b234ec7bb13aaac75c9366d6798 100644 (file)
@@ -3,6 +3,7 @@ Test lchown() function : basic functionality
 --SKIPIF--
 <?php
 if (substr(PHP_OS, 0, 3) == 'WIN') die('Skip: no windows support');
+if (!function_exists("posix_getuid")) die("skip: no posix_getuid()");
 ?>
 --FILE--
 <?php
index 879da0a99f4a5e01d28def9d0feb1118d2732e99..a0be6730e9ecaeee91bb1fa295b76067fc9cf60c 100644 (file)
@@ -3,6 +3,7 @@ Test lchown() function : error functionality
 --SKIPIF--
 <?php
 if (substr(PHP_OS, 0, 3) == 'WIN') die('Skip: no windows support');
+if (!function_exists("posix_getuid")) die("skip: no posix_getuid()");
 ?>
 --FILE--
 <?php