Browse files

Added note about error reporting in tests.

  • Loading branch information...
1 parent c88e0fd commit b26230150c32b7902b3bff4373d8b1bb2680c538 Ilia Alshanetsky committed Oct 25, 2002
Showing with 7 additions and 0 deletions.
@@ -247,6 +247,13 @@ When you use an include file for the SKIPIF section it should be named
"" and an include file used in the FILE section of many tests
should be named "".
+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
+in the error message content.
[How to help us]
If you find bug in PHP, you can submit bug report AND test script

0 comments on commit b262301

Please sign in to comment.