indeyets                Tue Oct 21 13:38:57 2008 UTC

  Modified files:              
    /php-src/ext/standard/tests/file    fnmatch_basic.phpt 
                                        fnmatch_error.phpt 
                                        fnmatch_variation.phpt 
  Log:
  MFB: skip tests on systems without fnmatch() function (f.e.: old darwin)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fnmatch_basic.phpt?r1=1.5&r2=1.6&diff_format=u
Index: php-src/ext/standard/tests/file/fnmatch_basic.phpt
diff -u php-src/ext/standard/tests/file/fnmatch_basic.phpt:1.5 
php-src/ext/standard/tests/file/fnmatch_basic.phpt:1.6
--- php-src/ext/standard/tests/file/fnmatch_basic.phpt:1.5      Tue Oct 21 
12:48:37 2008
+++ php-src/ext/standard/tests/file/fnmatch_basic.phpt  Tue Oct 21 13:38:57 2008
@@ -2,8 +2,11 @@
 Test fnmatch() function: Basic functionality
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) == 'WIN')
-  die("skip do not run on Windows");
+if (substr(PHP_OS, 0, 3) == 'WIN')
+    die("skip do not run on Windows");
+
+if (!function_exists('fnmatch'))
+    die("skip fnmatch() function is not available");
 ?>
 --FILE--
 <?php
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fnmatch_error.phpt?r1=1.5&r2=1.6&diff_format=u
Index: php-src/ext/standard/tests/file/fnmatch_error.phpt
diff -u php-src/ext/standard/tests/file/fnmatch_error.phpt:1.5 
php-src/ext/standard/tests/file/fnmatch_error.phpt:1.6
--- php-src/ext/standard/tests/file/fnmatch_error.phpt:1.5      Tue Oct 21 
12:48:37 2008
+++ php-src/ext/standard/tests/file/fnmatch_error.phpt  Tue Oct 21 13:38:57 2008
@@ -2,8 +2,11 @@
 Test fnmatch() function: Error conditions
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) == 'WIN')
-  die("skip do not run on Windows");
+if (substr(PHP_OS, 0, 3) == 'WIN')
+    die("skip do not run on Windows");
+
+if (!function_exists('fnmatch'))
+    die("skip fnmatch() function is not available");
 ?>
 --FILE--
 <?php
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fnmatch_variation.phpt?r1=1.5&r2=1.6&diff_format=u
Index: php-src/ext/standard/tests/file/fnmatch_variation.phpt
diff -u php-src/ext/standard/tests/file/fnmatch_variation.phpt:1.5 
php-src/ext/standard/tests/file/fnmatch_variation.phpt:1.6
--- php-src/ext/standard/tests/file/fnmatch_variation.phpt:1.5  Tue Oct 21 
12:48:37 2008
+++ php-src/ext/standard/tests/file/fnmatch_variation.phpt      Tue Oct 21 
13:38:57 2008
@@ -2,8 +2,11 @@
 Test fnmatch() function: Variations
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) == 'WIN')
-  die("skip do not run on Windows");
+if (substr(PHP_OS, 0, 3) == 'WIN')
+    die("skip do not run on Windows");
+
+if (!function_exists('fnmatch'))
+    die("skip fnmatch() function is not available");
 ?>
 --FILE--
 <?php



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

Reply via email to