Last modified: 2011-03-13 18:06:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T15508, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13508 - php errors are gone
php errors are gone
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Lowest trivial (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-25 21:04 UTC by Carl Fürstenberg
Modified: 2011-03-13 18:06 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Carl Fürstenberg 2008-03-25 21:04:26 UTC
Somewhere, deep down the layers of code in the api, there is a little monster, called fluffy, who has a habit of eating upp all php notices generated by PHP, even when html formated output is generated.
Comment 1 Roan Kattouw 2008-03-26 14:02:33 UTC
I found Fluffy: it's the ob_clean() call in ApiMain::executeActionWithErrorHandling(). It doesn't eat all error messages, only those that happen before ApiBase::dieUsage() is called (which happens on error or action=help). For non-fm formats, it doesn't eat errors, but it should.

The former can't really be fixed as we need to ob_clean() any output that might have happened before the dieUsage() call. The latter has been fixed in r32467.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links