phar and e_strict
| From: | Derick Rethans | Date: | Sat, 01 Oct 2005 14:17:19 +0000 |
| Subject: | phar and e_strict | ||
| Groups: | php.internals php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-40003@lists.php.net to get a copy of this message | ||
Hello!
I am wondering why "make install-pear" comes up with hundreds of
e_strict warnings? The code tests for PHP 5.1 but makes use of all old
things that are now considered e_strict or deprecated. Besides this for
some reason setting error_reporting to 0 doesn't help at all. First of
all the code does:
error_reporting(E_ALL);^M
if (version_compare(phpversion(), '5.1.0b1', '<')) {^M
die('Error: .phar files require PHP 5.1 or newer');^M
}^M
But it seems E_STRICT is turned on later for some reason too. Can this
code please be upgraded to 1. not modify any error reporting setting and
2. PHP 5.1 compatible code. Currently installing pear does not seem
to work at all with the .phar.
regards,
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org