[wp-trac] [WordPress Trac] #6672: define('SAVEQUERIES',
true) = debug_backtrace() = Error 500
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 10 20:56:22 GMT 2008
#6672: define('SAVEQUERIES', true) = debug_backtrace() = Error 500
---------------------+------------------------------------------------------
Reporter: ozh | Owner: anonymous
Type: defect | Status: new
Priority: lowest | Milestone: 2.5.1
Component: General | Version: 2.5
Severity: minor | Keywords: SAVEQUERIES, debug_backtrace
---------------------+------------------------------------------------------
This won't stop the earth rotation, but I've come across an annoying bug
that I'm having difficulties to identify precisely.
'''Fact:'''
`define('SAVEQUERIES', true);` in my wp-config.php makes everything break
with an Error 500.
'''Symptoms:'''
Error 500, log says "Premature end of script headers: /dh/cgi-
system/php5.cgi" which means basically anything.
'''Culprit:'''
Function get_caller() in wp-db.php is the one causing the error. In that
function, this particular line is to blame: $bt = debug_backtrace();
No clue why debug_backtrace() break things, though, and @debug_backtrace()
doesnt help.
'''Server specs:'''
PHP 5.2.3, Apache running CGI/FastCGI, [http://planetozh.com/phpinfo.php
whole phpinfo()]
This ticket is mostly for the record if anyone happens to search here for
the same problem, even if it's going to get a
wontfix/worksforme/cantreproduce. Cheers :)
--
Ticket URL: <http://trac.wordpress.org/ticket/6672>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list