Last modified: 2010-05-15 15:38:42 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 T5684, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3684 - wfDieDebugBacktrace function called in Hooks.php is never defined
wfDieDebugBacktrace function called in Hooks.php is never defined
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.5.x
PC Windows 2000
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-10-12 01:32 UTC by Nick Jenkins
Modified: 2010-05-15 15:38 UTC (History)
0 users

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


Attachments

Description Nick Jenkins 2005-10-12 01:32:12 UTC
In MediaWiki 1.5.0 the wfDieDebugBacktrace function is used in Hooks.php, but is
never defined:

ludo:/var/www/hosts/mediawiki-test/wiki# grep -inr wfDieDebugBacktrace *
includes/Hooks.php:38:                      wfDieDebugBacktrace("Global hooks
array is not an array!\n");
includes/Hooks.php:47:                      wfDieDebugBacktrace("Hooks array for
event '$event' is not an array!\n");
includes/Hooks.php:66:                                     
wfDieDebugBacktrace("Empty array in hooks for " . $event . "\n");
includes/Hooks.php:85:                                     
wfDieDebugBacktrace("Unknown datatype in hooks for " . $event . "\n");
includes/Hooks.php:93:                              wfDieDebugBacktrace("Unknown
datatype in hooks for " . $event . "\n");
ludo:/var/www/hosts/mediawiki-test/wiki# 

... and it's not part of PHP: http://php.net/wfDieDebugBacktrace
Comment 1 Brion Vibber 2005-10-12 01:42:40 UTC
Should be wfDebugDieBacktrace, no?
Comment 2 Nick Jenkins 2005-10-12 02:21:42 UTC
Yes. A s/wfDieDebugBacktrace/wfDebugDieBacktrace/ now prints "-1" on hitting
this function. That doesn't help me very much, but it's a whole lot better than
a PHP "Call to undefined function" error.
Comment 3 Brion Vibber 2005-10-12 06:34:18 UTC
Typo fix applied to HEAD and REL1_5.

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


Navigation
Links