helly Tue Mar 27 20:27:39 2007 UTC
Modified files:
/php-src run-tests.php
Log:
- Allow to load multipe extensions via -d
http://cvs.php.net/viewvc.cgi/php-src/run-tests.php?r1=1.315&r2=1.316&diff_format=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.315 php-src/run-tests.php:1.316
--- php-src/run-tests.php:1.315 Thu Feb 8 15:25:17 2007
+++ php-src/run-tests.php Tue Mar 27 20:27:39 2007
@@ -23,7 +23,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: run-tests.php,v 1.315 2007/02/08 15:25:17 nlopess Exp $ */
+/* $Id: run-tests.php,v 1.316 2007/03/27 20:27:39 helly Exp $ */
/* Sanity check to ensure that pcre extension needed by this script is
available.
* In the event it is not, print a nice error message indicating that this
script will
@@ -401,7 +401,7 @@
$html_output = is_resource($html_file);
break;
case '--version':
- echo '$Revision: 1.315 $'."\n";
+ echo '$Revision: 1.316 $'."\n";
exit(1);
default:
echo "Illegal switch specified!\n";
@@ -1748,7 +1748,14 @@
$setting = explode("=", $setting, 2);
$name = trim(strtolower($setting[0]));
$value = trim($setting[1]);
- $ini_settings[$name] = $value;
+ if ($name == 'extension') {
+ if (!isset($ini_settings[$name])) {
+ $ini_settings[$name] = array();
+ }
+ $ini_settings[$name][] = $value;
+ } else {
+ $ini_settings[$name] = $value;
+ }
}
}
}
@@ -1757,8 +1764,15 @@
{
$settings = '';
foreach($ini_settings as $name => $value) {
- $value = addslashes($value);
- $settings .= " -d \"$name=$value\"";
+ if (is_array($value)) {
+ foreach($value as $val) {
+ $val = addslashes($val);
+ $settings .= " -d \"$name=$val\"";
+ }
+ } else {
+ $value = addslashes($value);
+ $settings .= " -d \"$name=$value\"";
+ }
}
$ini_settings = $settings;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php