Echoing warning when running make test with safe_mode enabled

From: Date: Mon, 06 May 2002 08:27:04 +0000
Subject: Echoing warning when running make test with safe_mode enabled
Groups: php.qa 
Request: Send a blank email to php-qa+get-5325@lists.php.net to get a copy of this message
Hi, If no one objects I'll commit this little warning message when running "make test" with safe_mode enabled: Index: run-tests.php =================================================================== RCS file: /repository/php4/run-tests.php,v retrieving revision 1.40 diff -u -r1.40 run-tests.php --- run-tests.php 12 Apr 2002 01:34:06 -0000 1.40 +++ run-tests.php 6 May 2002 08:23:25 -0000 @@ -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(); If someone has a better idea how to outline this, just go ahead (I'm posting this instead of commiting so we don't commit around zillion times until people finally accept the warning message ;-) - Markus -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc "I'm not stupid, you know? :)" - Jani Taskinen

« previous php.qa (#5325) next »