gagan22 Posted January 30, 2009 Share Posted January 30, 2009 HI everyone, I have got one warning in my php file.Please help me i want to remove this warning .How it can be removed ,warning is : Warning: Call-time pass-by-reference has been deprecated; 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 in /home/fhlinux146/r/rydergifts.co.uk/user/htdocs/admin/includes/OrderRender.class.php on line 88 gagan Quote Link to comment https://forums.phpfreaks.com/topic/143111-warning-requirement-is-some-modification-phpini-file/ Share on other sites More sharing options...
Adam Posted January 30, 2009 Share Posted January 30, 2009 Try placing this at the top of your script... ini_set('allow_call_time_pass_reference', true); Adam Quote Link to comment https://forums.phpfreaks.com/topic/143111-warning-requirement-is-some-modification-phpini-file/#findComment-750550 Share on other sites More sharing options...
printf Posted January 30, 2009 Share Posted January 30, 2009 I would fix the class, not change the php.ini directive. Give me link to the class and I will tell you how to fix it. But if you want to change the php.ini file then find the line "allow_call_time_pass_reference = Off" in your php.ini file and change it to "allow_call_time_pass_reference = On" then restart your server. Or if recall you can set this per directory (not within a script), so you can add it as a php flag and set it in htaccess file... Quote Link to comment https://forums.phpfreaks.com/topic/143111-warning-requirement-is-some-modification-phpini-file/#findComment-750552 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.