<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
As per our earlier talk, I'm trying to better understand PHP, so when we see the &$ it is passing by value, and when it is $ it is passing by reference???, what prevents you from just changing the function call to the return call_user_function what is it returning?<br><br><br><br>Joseph Wennechuk<br>
________________<br><br><br><br><br>> Date: Thu, 20 Jan 2011 16:36:15 -0500<br>> From: john@netdirect.ca<br>> To: kwlug-disc@kwlug.org<br>> Subject: Re: [kwlug-disc] Your KWLUG web site account is at risk<br>> <br>> ----- Original Message -----<br>> > On Thu, Jan 20, 2011 at 9:00 AM, John Van Ostrand < john@netdirect.ca<br>> > > wrote:<br>> > <br>> > > Here is another thread documenting Drupal 6 and PHP 5.3<br>> > > compatibility:<br>> <br>> 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.<br>> <br>> In:<br>> <br>> includes/module.inc:function module_invoke():<br>> // $args is set to array($type, $edit, $user, $category)<br>> // $function gets set to "user_user"<br>> return call_user_func_array($function, $args);<br>> <br>> But in:<br>> <br>> modules/user/user.module the function is declared as:<br>> <br>> function user_user($type, &$edit, &$user, $category = NULL)<br>> <br>> Since call_user_func is used the error is lost.<br>> <br>> -- <br>> John Van Ostrand <br>> CTO, co-CEO <br>> Net Direct Inc. <br>> 564 Weber St. N. Unit 12, Waterloo, ON N2L 5C6 <br>> Ph: 866-883-1172 x5102 <br>> Fx: 519-883-8533 <br>> <br>> Linux Solutions / IBM Hardware <br>> <br>> <br>> _______________________________________________<br>> kwlug-disc mailing list<br>> kwlug-disc@kwlug.org<br>> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org<br> </body>
</html>