Last modified: 2013-09-04 10:36:16 UTC
Bug documented here: https://bugs.php.net/bug.php?id=55305 When a variable that was instantiated in the class definition gets a second reference as an instance variable, it must be pre-instantiated. Results in segfault and sudden memory allocations of 1.5+GB in size. includes/parser/Preprocessor_DOM.php:684 class PDDStack is guilty of this. Workarounds: - Instantiate the second named variable before you make it a reference. `$this->accum = nil;` is enough - Instantiate the second named variable in the class definition - Instantiate neither in the class definion I'm not sure where else this is likely to crop up.
*** Bug 30093 has been marked as a duplicate of this bug. ***
Update: The PHP guys have patched 5.4 and closed the associated bug in r314054, so the current snapshots/builds should not be exhibiting these symptoms. https://bugs.php.net/bug.php?id=55305