cvs: php-src / run-tests.php
| From: | Magnus M��tt� | Date: | Wed, 09 Mar 2005 04:23:02 +0000 |
| Subject: | cvs: php-src / run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-30798@lists.php.net to get a copy of this message | ||
magnus Tue Mar 8 23:23:02 2005 EDT
Modified files:
/php-src run-tests.php
Log:
Since in_array is case sensitive we need to convert the names to lowercase
otherwise it won't run tests for extensions where the case of the name differ from the
extension name.
http://cvs.php.net/diff.php/php-src/run-tests.php?r1=1.203&r2=1.204&ty=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.203 php-src/run-tests.php:1.204
--- php-src/run-tests.php:1.203 Sat Feb 26 10:23:10 2005
+++ php-src/run-tests.php Tue Mar 8 23:23:02 2005
@@ -343,6 +343,11 @@
}
}
+// Convert extension names to lowercase
+foreach ($exts_to_test as $key => $val) {
+ $exts_to_test[$key] = strtolower($val);
+}
+
foreach ($test_dirs as $dir) {
find_files("{$cwd}/{$dir}", ($dir == 'ext'));
}
@@ -358,7 +363,7 @@
$o = opendir($dir) or error("cannot open directory: $dir");
while (($name = readdir($o)) !== FALSE) {
if (is_dir("{$dir}/{$name}") && !in_array($name, array('.',
'..', 'CVS'))) {
- $skip_ext = ($is_ext_dir && !in_array($name, $exts_to_test));
+ $skip_ext = ($is_ext_dir && !in_array(strtolower($name), $exts_to_test));
if ($skip_ext) {
$exts_skipped++;
}