cvs: php4 / run-tests.php
| From: | Markus Fischer | Date: | Wed, 08 May 2002 07:23:55 +0000 |
| Subject: | cvs: php4 / run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-11746@lists.php.net to get a copy of this message | ||
mfischer Wed May 8 03:23:55 2002 EDT
Modified files:
/php4 run-tests.php
Log:
- Add a warning if running with safe_mode enabled.
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.40 php4/run-tests.php:1.41
--- php4/run-tests.php:1.40 Thu Apr 11 21:34:06 2002
+++ php4/run-tests.php Wed May 8 03:23:54 2002
@@ -25,6 +25,22 @@
* - do not test PEAR components if base class and/or component class cannot be instanciated
*/
+if (ini_get('safe_mode')) {
+ echo <<<SAFE_MODE_WARNING
+
++-----------------------------------------------------------+
+| ! WARNING ! |
+| You are running the test-suite with "safe_mode" ENABLED ! |
+| |
+| Chances are high that no test will work at all, |
+| depending on how you configured "safe_mode" ! |
++-----------------------------------------------------------+
+
+
+SAFE_MODE_WARNING;
+}
+
+
set_time_limit(0);
ob_implicit_flush();