Search code examples
phpxampppear

Pear error: Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PEAR\Config.php on line 80 Deprecated


I'm trying to install Media frontpage (www.mediafrontpage.net) to monitor my sickbeard/sabnzbd etc. I can't get it to work because of these annoying PEAR errors:

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PEAR\Config.php on line 80 
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PEAR\Config.php on line 166

The weird thing is, MediaFrontpage does not use pear at all! Still i get this annoying error.

I need PEAR for another application, so I can't just remove it.

See this screenshot, where you can see the errors: http://piclair.com/data/kfw8s.jpg

I have tried to upgrade pear using 'php go-pear.phar' on the commandline, but that didn't help.


Solution

  • The lines responsible for the error would look something like

     $var = &new Something;
    

    Remove the ampersand before new.