PhpBeautifier
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
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
...
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)
Actually the code should be error_reporting(E_ALL &~ E_DEPRECATED);
thanks peeps!!! :heart: This issue should be closed i guess!