Deprecated errors when installing pear

Posted by JW on Stack Overflow See other posts from Stack Overflow or by JW
Published on 2010-05-10T23:42:39Z Indexed on 2010/05/10 23:44 UTC
Read the original article Hit count: 500

Filed under:
|

I'm trying to install PEAR on OS X. I did this:

curl http://pear.php.net/go-pear > go-pear.php
php go-pear.php

After answering some prompts, I start getting tons of errors like this:

Deprecated: Assigning the return value of new by reference is deprecated in /Users/jacobweber/bin/pear/temp/PEAR.php on line 563
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /Users/jacobweber/bin/pear/temp/PEAR.php on line 566

Now, I understand what these errors mean. I just want to hide them. So in my /private/etc/php.ini file, I have the following:

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED

This hides those same errors in my own code. But in PEAR it doesn't. They seem to be changing the error_reporting level.

Is there a good way to fix this?

© Stack Overflow or respective owner

Related posts about php

Related posts about pear