]> granicus.if.org Git - php/commitdiff
Enough discussion on display_erros it seems
authorMarcus Boerger <helly@php.net>
Wed, 30 Oct 2002 12:18:48 +0000 (12:18 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 30 Oct 2002 12:18:48 +0000 (12:18 +0000)
README.TESTING
run-tests.php

index 093c2398d3de088ba2d424a2aba7c3f418384d33..ca21f3ae78cd60698d5066fcd71aacc90e942c4c 100644 (file)
@@ -270,11 +270,15 @@ When you use an include file for the SKIPIF section it should be named
 "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 7ab4e6823e05d5b51fbf67e69b6958be880453ee..2473d77d27b9d1c53e6f452d844f02bd878af3fd 100755 (executable)
@@ -498,7 +498,7 @@ TEST $file
                "open_basedir=",
                "disable_functions=",
                "error_reporting=2047",
-               "display_errors=0",
+               "display_errors=1",
                "log_errors=0",
                "html_errors=0",
                "track_errors=1",