k.schroeder             Sun Feb  9 08:19:23 2003 EDT

  Modified files:              
    /php4/ext/standard/tests/file       003-win32.phpt 003.phpt 
  Log:
  is_executable() does not exist on Windows
  
Index: php4/ext/standard/tests/file/003-win32.phpt
diff -u /dev/null php4/ext/standard/tests/file/003-win32.phpt:1.2
--- /dev/null   Sun Feb  9 08:19:23 2003
+++ php4/ext/standard/tests/file/003-win32.phpt Sun Feb  9 08:19:23 2003
@@ -0,0 +1,46 @@
+--TEST--
+is_*() and file_exists() return values are boolean.
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) != 'WIN') {
+    die('skip only for Windows');
+}
+?>
+--POST--
+--GET--
+--FILE--
+<?php
+
+$funcs = array(
+    'is_writable',
+    'is_readable',
+    'is_file',
+    'file_exists',
+);
+
+$filename="";
+
+foreach ($funcs as $test) {
+    $bb = $test($filename);
+    echo gettype($bb)."\n";
+    clearstatcache();
+}
+
+$filename="run-tests.php";
+
+foreach ($funcs as $test) {
+    $bb = $test($filename);
+    echo gettype($bb)."\n";
+    clearstatcache();
+}
+
+?>
+--EXPECT--
+boolean
+boolean
+boolean
+boolean
+boolean
+boolean
+boolean
+boolean
Index: php4/ext/standard/tests/file/003.phpt
diff -u php4/ext/standard/tests/file/003.phpt:1.5 
php4/ext/standard/tests/file/003.phpt:1.6
--- php4/ext/standard/tests/file/003.phpt:1.5   Sat Oct 12 12:53:13 2002
+++ php4/ext/standard/tests/file/003.phpt       Sun Feb  9 08:19:23 2003
@@ -1,5 +1,11 @@
 --TEST--
 is_*() and file_exists() return values are boolean.
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+  die('skip is_executable() does not exist on Windows');
+}
+?>
 --POST--
 --GET--
 --FILE--



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

Reply via email to