Workaround for segfault observed on parse for certain input text. Related to PHP...
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 25 Jan 2008 07:43:23 +0000 (07:43 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 25 Jan 2008 07:43:23 +0000 (07:43 +0000)
commit122f4fb7134fd4aefde75392bd2bee7da6efd1aa
tree15bc7686322bf1134da75664dc79136bc43ed14a
parentdb89122b8903bb325fc6818033ca11be9e638e89
Workaround for segfault observed on parse for certain input text. Related to PHP bug 35229, but was observed in call_user_func_array() not call_user_func(). Apparently autoloading is buggy especially when invoked from an unusual context. My workaround is to trigger early autoloading using is_callable(). And if we're going to call is_callable(), we may as well do something sensible if it returns false, right?
includes/Parser.php