https://bugzilla.wikimedia.org/show_bug.cgi?id=30094
Web browser: ---
Bug #: 30094
Summary: Bug in PHP 5.4alphas causes segfault on every page
load
Product: MediaWiki
Version: 1.17.0beta1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Parser
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
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.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l