Re: Re: Problem Installing lates PHP_5_2 CVS - Fatal error: Not valid internal .phar file (checksum error

From: Date: Sat, 06 Jan 2007 15:05:25 +0000
Subject: Re: Re: Problem Installing lates PHP_5_2 CVS - Fatal error: Not valid internal .phar file (checksum error
References: 1 2 3  Groups: php.internals php.pear.dev php.pear.qa php.qa 
Request: Send a blank email to internals+get-27299@lists.php.net to get a copy of this message
Hello, On 1/6/07, Sebastian Nohn <sebastian@nohn.net> wrote:
Hi Christan,
Fatal error: Not valid internal .phar file (checksum error) in ...../php5/pear/install-pear-nozlib.phar on line 411 make[1]: *** [install-pear-installer] Error 255 make: *** [install-pear] Error 2 [...]
I guess you are on a 64 bit system; http://greg.chiaraquartet.net/archives/160-problem-with-PHP_Archive-based-phars-tracked-to-odd-unpack-bug.html That may very well be. It's an AMD Opteron and Greg's example returns the same output. What irritates me a bit: It's a 32 bit OS running on the machine and PEAR.phar-installation worked on that machine until yesterday evening.
The integer is still 64bit internally. A 64bit integer can be shown as a negative 32bit signed integer when the apps is expecting a 32bits integer. As the pack issue is real (but predictable), the checksum functions do work. One should not print_r/var_dump them and takes wrong conclusions, they are human representation of an internal value. If you need more than 32bit for some integer operations, you should rely on pecl/bigint, bcmath or some home made php implementation. Hope that helps, --Pierre

« previous php.internals (#27299) next »