Bug #19060 allow_call_time_pass_reference php setting
Submitted: 12 Apr 2006 19:38 Modified: 5 Jun 2006 17:04
Reporter: Tim Pearson Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Eventum Severity:S3 (Non-critical)
Version:1.7.1 OS:
Assigned to: CPU Architecture:Any

[12 Apr 2006 19:38] Tim Pearson
Description:
The need of the allow_call_time_pass_reference to be enabled in php.ini to run Eventum.

This is something that is going to be depreciated in the near future and is recomended not to be used, from the php.net website:

 Whether to warn when arguments are passed by reference at function call time. This method is deprecated and is likely to be unsupported in future versions of PHP/Zend. The encouraged method of specifying which arguments should be passed by reference is in the function declaration. You're encouraged to try and turn this option Off and make sure your scripts work properly with it in order to ensure they will work with future versions of the language (you will receive a warning each time you use this feature).

Passing arguments by reference at function call time was deprecated for code cleanliness reason. Function can modify its argument in undocumented way if it didn't declared that the argument is passed by reference. To prevent side-effects it's better to specify which arguments are passed by reference in function declaration only. 

This has stopped my being able to use Eventum as i cannot change my php.ini setting (shared host), and it will not let me set this setting in a .htaccess file.

Regards
Tim Pearson

How to repeat:
Turn allow_call_time_pass_reference off in php.ini, and run the setup script.
[5 Jun 2006 17:04] Sveta Smirnova
allow_call_time_pass_reference is PHP_INI_PERDIR. So you can change allow_call_time_pass_reference value in .htaccess

See additional info in PHP manual: http://www.php.net/manual/en/ini.php