I'm trying to install PEAR on OS X, using the built-in PHP 5.3 installation. 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/username/bin/pear/temp/PEAR.php on line 563
PHP Deprecated: Assigning the return value of new by reference is deprecated in /Users/username/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?