PHP warning in php.ini file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gagan
Forum Newbie
Posts: 10
Joined: Fri Jan 30, 2009 5:03 am

PHP warning in php.ini file

Post by gagan »

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
User avatar
Attero
Forum Newbie
Posts: 18
Joined: Thu Jan 29, 2009 9:35 am
Location: Farnborough, UK

Re: PHP warning in php.ini file

Post by Attero »

You might want to make your software so that it works rather than having to edit the ini file, especially if you are offering this software to other users.

If you have access to the php.ini file just open that up and press ctrl+f and search for allow_call_time_pass_reference.
Then do as it says.

If you don't have access to the ini file, (I'm not sure if it will work, but it's worth a try) use:

Code: Select all

<?php
ini_set('allow_call_time_pass_reference', true);
?>
Post Reply