summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Fischer <mfischer@php.net>2002-05-08 07:23:54 +0000
committerMarkus Fischer <mfischer@php.net>2002-05-08 07:23:54 +0000
commit1a3c8e6289e9de2d24e07b33420b788969b986e9 (patch)
treed02c11be0ae7f5c359347a1e0b2809e52654d13f
parent31d1fac5786de6e13b7f4da5a6e31c80fdebb5bf (diff)
downloadphp-git-1a3c8e6289e9de2d24e07b33420b788969b986e9.tar.gz
- Add a warning if running with safe_mode enabled.
-rwxr-xr-xrun-tests.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/run-tests.php b/run-tests.php
index f19b9ea290..2496ea6c72 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -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();