Author: candrews
Description:
Using the UserLoadFromSession hook causes PHP to segfault. The line that actually segfault is the one with "call_user_func_array" in includes/Hooks.php
The call to run the hooks for UserLoadFromSession is on line 771 in includes/User.php - I believe the problem is in the parameters passed to wfRunHooks on that line:
wfRunHooks( 'UserLoadFromSession', array( $this, &$result ) );
Here's a simple case to reproduce the segfault:
$wgHooks['UserLoadFromSession'][] = 'testFn';
function testFn(&$user){
}
Version: 1.13.x
Severity: critical