Re: [PHP] Problem with reference variables.
change the function declaration to function myTestFunction($x) { funtion stuff here } R B wrote: Hello, If i set display_errors = on and error_reporting = E_ALL in my php.ini file, then i get this 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. I'm trying to pass a variable by reference to a function, ex: ?php myTestFunction($x); ? Do anyones know the new sintax for use reference variables? I don't understand the warning text: If you would like to pass it by reference, modify the declaration of [runtime function name](). If anyone have an example, better.. thanks, RB _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.microsoft.com/es -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with reference variables.
And when i call the myTestFunction function, i have to put in the variable? ex: function myTestFunction($x) { funtion stuff here } myTestFunction($x) or myTestFunction($x) ? Thanks, RB From: Marek Kilimajer [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Subject: Re: [PHP] Problem with reference variables. Date: Thu, 07 Nov 2002 19:09:06 +0100 change the function declaration to function myTestFunction($x) { funtion stuff here } R B wrote: Hello, If i set display_errors = on and error_reporting = E_ALL in my php.ini file, then i get this 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. I'm trying to pass a variable by reference to a function, ex: ?php myTestFunction($x); ? Do anyones know the new sintax for use reference variables? I don't understand the warning text: If you would like to pass it by reference, modify the declaration of [runtime function name](). If anyone have an example, better.. thanks, RB _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.microsoft.com/es -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Únete al mayor servicio mundial de correo electrónico: http://www.hotmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with reference variables.
On Friday 08 November 2002 02:35, R B wrote: And when i call the myTestFunction function, i have to put in the variable? ex: function myTestFunction($x) { funtion stuff here } myTestFunction($x) No. or myTestFunction($x) ? Yes. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* A great empire, like a great cake, is most easily diminished at the edges. -- B. Franklin */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php