i just updated to the latest cvs.

when the profile module is enabled i get the following message at the top of each screen:

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of profile_load_profile(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/ehopp/public_html/projects/modules/profile.module on line 90

anyone know why this is and whether it is a problem at my end or a bug with drupal?

Comments

mork’s picture

I got that same error.. just to get rid of having to look at it I went and removed the pass-by-reference on the noted line.. you'll seesomething like this;

some_function(&$some_variable);

I changed it to;

some_function($some_variable);

note: I didn't look at the function, and if it was at all needed, or if this change had any adverse effects - I did NO testing, I was actually just playing with themes and didn't want to keep seeing the message.

try and let us know :)

svemir’s picture

If you check the .htaccess file in your drupal root folder, you will see that this PHP warning is supposed to be "turned off" by allowing that kind of function calls. However, for some reason the php setting does not get always applied. In my case, the warning appeared after installing the ecommerce package.

After making sure that my apache configuration allows setting php values via .htaccess, I tried changing "On" to "1" for that particular setting, and the warnings dissapeared. Go figure...

erikhopp’s picture

ok, so changing line 38 in .htaccess from:

php_value allow_call_time_pass_reference On

to:

php_value allow_call_time_pass_reference 1

does indeed solve the problem.

thank you very much.

anyone think i should file a bug report regarding this issue? would this be considered a bug?

erik.