PhpBeautifier icon indicating copy to clipboard operation
PhpBeautifier copied to clipboard

PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/lib/php/pear/PEAR/Config.php on line 650

Open ahmozkya opened this issue 13 years ago • 3 comments

OSX 10.7 PHP 5.3.6 php_beautifier-0.1.15 Sublime Text 2 Build 2165 PhpBeautifier v2012.01.20.03.15.20

PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/lib/php/pear/PEAR/Config.php on line 650
PHP Stack trace:
PHP   1. {main}() /usr/bin/php_beautifier:0
PHP   2. PHP_Beautifier_Batch->addFilter() /usr/bin/php_beautifier:207
PHP   3. PHP_Beautifier_Decorator->__call() /usr/bin/php_beautifier:207
PHP   4. call_user_func_array() /usr/lib/php/pear/PHP/Beautifier/Decorator.php:47
PHP   5. PHP_Beautifier->addFilter() /usr/lib/php/pear/PHP/Beautifier/Decorator.php:47
PHP   6. PHP_Beautifier->addFilterFile() /usr/lib/php/pear/PHP/Beautifier.php:448
PHP   7. include_once() /usr/lib/php/pear/PHP/Beautifier.php:511
...

ahmozkya avatar Jan 24 '12 23:01 ahmozkya

hi,

this is a deprecated issue with pear, you can disable deprecated reporting in php_beautifier by adding error_reporting(error_reporting = E_ALL & ~E_DEPRECATED); in your php_beautifier file in /usr/bin/php_beautifier (linux) or /usr/local/pear/bin/php_beautifier (macos)

BarbUk avatar Jan 25 '12 21:01 BarbUk

Actually the code should be error_reporting(E_ALL &~ E_DEPRECATED);

caseybecking avatar Jul 21 '12 20:07 caseybecking

thanks peeps!!! :heart: This issue should be closed i guess!

saada avatar Aug 28 '13 17:08 saada