helly Wed Oct 30 07:18:48 2002 EDT
Modified files:
/php4 README.TESTING run-tests.php
Log:
Enough discussion on display_erros it seems
Index: php4/README.TESTING
diff -u php4/README.TESTING:1.17 php4/README.TESTING:1.18
--- php4/README.TESTING:1.17 Sat Oct 26 19:49:25 2002
+++ php4/README.TESTING Wed Oct 30 07:18:48 2002
@@ -270,11 +270,15 @@
"skipif.inc" and an include file used in the FILE section of many tests
should be named "test.inc".
-If your test intentionally generates a PHP warning message, insert
-'track_errors=1' into the --INI-- section. This will store the
-warning inside a $php_errormsg variable, which you can then output.
-This will result in a consistent error message output across all platforms
-and PHP configurations, preventing your test from failing due inconsistencies
+NOTE: All tests should run correctly with error_reporting(E_ALL) and
+display_errors=1. This is the default when called from run-test.php.
+If you have a good reason for lowering the error reporting, use --INI--
+section and comment this in your testcode.
+
+NOTE: If your test intentionally generates a PHP warning message use
+$php_errormsg variable, which you can then output. This will result
+in a consistent error message output across all platforms and PHP
+configurations, preventing your test from failing due inconsistencies
in the error message content.
[How to help us]
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.100 php4/run-tests.php:1.101
--- php4/run-tests.php:1.100 Wed Oct 30 05:42:55 2002
+++ php4/run-tests.php Wed Oct 30 07:18:48 2002
@@ -498,7 +498,7 @@
"open_basedir=",
"disable_functions=",
"error_reporting=2047",
- "display_errors=0",
+ "display_errors=1",
"log_errors=0",
"html_errors=0",
"track_errors=1",
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php