Wikia/app — pull request #488 by macbre (2013-03-11 15:37:22+00:00)
Title: BAC-91: fix PHP out of memory caused by recursive hook calls

Don't call ``Debug`` hook. It causes the following recursion:

```
7	0.0464	8737008	wfRunHooks( 'Debug', array (0 => 'wikifactory: wgDBserver for cluster c1 set to 10.14.30.141', 1 => NULL) )	../GlobalFunctions.php:875
8	0.0464	8737008	Hooks::run( 'Debug', array (0 => 'wikifactory: wgDBserver for cluster c1 set to 10.14.30.141', 1 => NULL) )	../GlobalFunctions.php:3879
9	0.0464	8737096	wfProfileIn( 'Hooks::run-hook-Debug' )	../Hooks.php:96
10	0.0465	8737144	ProfilerSimple->profileIn( 'Hooks::run-hook-Debug' )	../Profiler.php:17
11	0.0465	8737296	Profiler->debug( ' Entering Hooks::run-hook-Debug\n' )	../ProfilerSimple.php:54
12	0.0465	8737336	wfDebug( ' Entering Hooks::run-hook-Debug\n', ??? )	../Profiler.php:510
13	0.0465	8738008	wfRunHooks( 'Debug', array (0 => ' Entering Hooks::run-hook-Debug\n', 1 => NULL) )	../GlobalFunctions.php:875
```

and so on :)

@wladekb