https://bugzilla.wikimedia.org/show_bug.cgi?id=23878
Summary: PHP notices and warnings could be tagged in the HTML
for automatic testing
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: General/Unknown
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=7451)
--> (https://bugzilla.wikimedia.org/attachment.cgi?id=7451)
PHP code for a custom error handler that roughly mimics PHP's built-in error
handler, except that it adds an identifying tag to the error message.
By changing the error_handler (with set_error_handler), MW could add a HTML
identifying tag to the Notices and Warnings that are occasionally output by
pages.
This would be useful for automatic testing, which would visit various pages and
check for the presence of these tags (among other things).
A code for the proposed new error_handler function is attached with a few
tests. It mimics the 'default' error handler, but puts the errors in a div with
an appropriate ID.
The output of the tests are also attached as a comment.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l