» DaoGen Forums
» Call-time Pass-By-Reference
Posted by anonymous 19.09.2006 06:39
Several lines in the DAO.php code produce the following warning:
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 [runtime function name]()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.
What would be the best way to eliminate the problem without enabling call-time pass-by-reference in the INI file? Would removing the offending "&" reference operators affect the code adversely?
In a simple test based on the example code, the code works without them however am I killing some functionality downstream because of it?
Re: Call-time Pass-By-Reference
Posted by Luigi 19.09.2006 09:33
The pass-by-reference is important part of the functionality. Some parts of the code may work without it, but not all. I have not updated the DaoGen for a while and these warnings come from changes in PHP language itself since I last used it. Right now I have no time to fix the generator, but you should do what your PHP version requires to enable pass-by-reference.
I hope you can make it work!
PS: If you manage to solve the problem, please post the resolution here, it may be useful for others as well.
Re: Re: Call-time Pass-By-Reference
Posted by anonymous 20.09.2006 02:11
Oops... sorry for the double post... Anyway, thanks for the info. If i come upon a good work-around i'll let you know!