Hello,
On 1/6/07, Sebastian Nohn <[EMAIL PROTECTED]> 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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php