Sisäänkirjautuminen| Uusi tunnus
FrontPage| Projects| Forums| Search|
^ DaoGen Forums: › Why? › PHP5? › Using ToString() with PHP › Next DaoGen version almost ready! › Create (insert) and Save (update) PHP examples › Support for numeric object types almost ready! › DaoGen 2.1.0 released! › Compliments and minor suggestion › variables within a class › Foreign key constraint in create() › Security issue!!! › auto-generated columns and create method › Oracle BLOB › DAO for cross-table queries › Please help me.. › Please use this forum for DaoGen related stuff » Call-time Pass-By-Reference › DaoGen 2.4.0 has been released! › How can I show relationships? › DaoGen & PHP 5 › PHP4 vs PHP5 and other considerations. › singleQuery example in php › Why are save and delete not synchronized? › Why are save and delete not synchronized? › DTD for generated XML › DaoGen 2.2.2 has been released! › DaoGen 2.0.2 is available. › For a thesis ?? › Extremely good idea ?? how can I ???? › Usability suggestions for DaoGen › Performance of DaoGen with Mapping tools › Performance with List › Some usage statistics › DaoGen 2.2.1 has been released! › Programming Examples are back! › DaoGen 2.0.1 is available. › Version 2.0.0 generates buggy PHP code! New version soon available! › Examples of DaoGen customizations › Code Examples
» Käyttäjätunnus:
» Salasana:
» Muista kirjautuminen:
Suosituimmat sivut: › DaoGen 2.1.0 released! › Using ToString() with PHP › DaoGen Forums › Programming Examples › DaoGen Manual › DaoGen FAQ › Search › Projects › Forums › Version 2.0.0 generates buggy PHP code! New version soon available!
FrontPage » Forums » DaoGen Forums » Call-time Pass-By-Reference

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!

// Luigi

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!