Call-time pass-by-reference issue

Hi,

I’m developing a website on my laptop. Laptop includes Ubuntu 14.04 LTS, Apache, PHP 5.5.9, PEAR and DB.This Website I’m about to improve is done with Smarty many years ago. For now I’ve got some of the pages work fine, but some of them deny to work.

I’m trying to open a php-file with name innernoise.php and the browser gives me error:
Fatal error : Call-time pass-by-reference has been removed in /var/www/html/blah/blah/ innernoise.php on line 131

The line:
$smarty->assign(“errors”, &$errors);

It’s about &-character, no doubt about it. But I’m afraid, that similar lines are everywhere through the whole code.

According to this site:

, as of PHP 5.3.0, you will get a warning saying that “call-time pass-by-reference” is deprecated when you use & in `foo(&$a);
PHP 5.3.0 is published 2009. Website is made with PHP 5.5.12(published 2014) and it’s worked fine with it, not giving such an error. How can this site have &-char in function or method call? Ain’t this a conflict?
How could I solve the situation? Please help!

Sponsor our Newsletter | Privacy Policy | Terms of Service