[kwlug-disc] Your KWLUG web site account is at risk

John Van Ostrand john at netdirect.ca
Thu Jan 20 16:36:15 EST 2011

----- Original Message -----
> On Thu, Jan 20, 2011 at 9:00 AM, John Van Ostrand < john at netdirect.ca
> > wrote:
> > Here is another thread documenting Drupal 6 and PHP 5.3
> > compatibility:

In the case of why User view/edit doesn't work I have the answer. The call to hook_user is being made with an array of values when a list of scalars is taken by the function. Not only that the scalars are by reference.


includes/module.inc:function module_invoke():
    // $args is set to array($type, $edit, $user, $category)
    // $function gets set to "user_user"
    return call_user_func_array($function, $args);

But in:

modules/user/user.module the function is declared as:

   function user_user($type, &$edit, &$user, $category = NULL)

Since call_user_func is used the error is lost.

John Van Ostrand 
CTO, co-CEO 
Net Direct Inc. 
564 Weber St. N. Unit 12, Waterloo, ON N2L 5C6 
Ph: 866-883-1172 x5102 
Fx: 519-883-8533 

Linux Solutions / IBM Hardware 

More information about the kwlug-disc mailing list