Skip to content

Commit

Permalink
Enough discussion on display_erros it seems
Browse files Browse the repository at this point in the history
  • Loading branch information
helly25 committed Oct 30, 2002
1 parent 7b9eae0 commit fde7dff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions README.TESTING
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion run-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ function run_test($php,$file)
"open_basedir=",
"disable_functions=",
"error_reporting=2047",
"display_errors=0",
"display_errors=1",
"log_errors=0",
"html_errors=0",
"track_errors=1",
Expand Down

0 comments on commit fde7dff

Please sign in to comment.