]> granicus.if.org Git - php/commitdiff
- Add a warning if running with safe_mode enabled.
authorMarkus Fischer <mfischer@php.net>
Wed, 8 May 2002 07:23:54 +0000 (07:23 +0000)
committerMarkus Fischer <mfischer@php.net>
Wed, 8 May 2002 07:23:54 +0000 (07:23 +0000)
run-tests.php

index f19b9ea290cb9d9d471420e706f45bbc5fcd66ed..2496ea6c72e01ad0ba13d817d1846dfab2ab5500 100755 (executable)
  * - 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();