[wp-trac] Re: [WordPress Trac] #3471: Fatal error messages are
cached by proxy servers
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 13 04:03:14 GMT 2007
#3471: Fatal error messages are cached by proxy servers
-----------------------+----------------------------------------------------
Reporter: justdave | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.3
Component: General | Version: 2.1
Severity: normal | Resolution:
Keywords: has-patch |
-----------------------+----------------------------------------------------
Comment (by DD32):
> Got a HTTP/1.x 200 OK header, not a 500.
just rechecked, status_header() requires the filters to be loaded, and for
the wp-includes/vars.php to be included as well(for the status desc.).
So, it doesnt look like its possible at this stage of the code(before DB
is connected) to rely on status_header().
which leaves 2 options, hard code a 500 error into wp_die(), or hard code
a 500 error(and duplicate the wp_die() html) into wp-db.php
i'll attach a patch which uses status_header() if hooks are loaded, else,
hard code to 500
--
Ticket URL: <http://trac.wordpress.org/ticket/3471#comment:12>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list