https://bugzilla.wikimedia.org/show_bug.cgi?id=28480
Bug #: 28480
Summary: Deprecate WebResponde::header() in favor of PHP's
built-in function header()
Product: MediaWiki
Version: 1.18-svn
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: General/Unknown
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
The method WebResponse::header() is a wrapper for PHP's built-in function
header() that sends HTTP headers. This then often leads to code like:
$wgRequest->response()->header('HTTP/1.1 404 Not Found');
which means a lot of work with (global) objects that could be done so much
easier with
header('HTTP/1.1 404 Not Found');
Not only does this save object calls and thus improves speed, it's also much
easier to read if you ask me. There are no features lost, as this is really
just a wrapper method.
--
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