List Info

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




Problem Installing lates PHP_5_2 CVS - Fatal error: Not valid internal .phar file (checksum error
user name
2007-01-06 10:08:01
This happens using the latest PHP_5_2 CVS:

[...]
11:00:49 (273.62 KB/s) - `pear/install-pear-nozlib.phar'
saved
[3287079/3287079]

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 don't know whether this is a bug in PHP (the only
difference to a
working install is http://news.php.net
/php.cvs/42575 and I doubt this
will break PHAR handling).

Best regards,
  Sebastian Nohn
-- 
Sebastian Nohn · Wolfstraße 29 · 53111 Bonn · Germany
+49-170-4718105 · http://nohn.net/ · sebastiannohn.net
http://pgpkeys.pca.dfn
.de:11371/pks/lookup?op=get&fingerprint=on&search=0x
D47D55E0

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

Problem Installing lates PHP_5_2 CVS - Fatal error: Not valid internal .phar file (checksum error
user name
2007-01-06 10:05:41
Sebastian,


> 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;
ht
tp://greg.chiaraquartet.net/archives/160-problem-with-PHP_Ar
chive-based-phars-tracked-to-odd-unpack-bug.html

 --
Christian Weiske

Problem Installing lates PHP_5_2 CVS - Fatal error: Not valid internal .phar file (checksum error
user name
2007-01-06 10:54:55
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;
> ht
tp://greg.chiaraquartet.net/archives/160-problem-with-PHP_Ar
chive-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.

Best regards,
  Sebastian Nohn
-- 
Sebastian Nohn · Wolfstraße 29 · 53111 Bonn · Germany
+49-170-4718105 · http://nohn.net/ · sebastiannohn.net
http://pgpkeys.pca.dfn
.de:11371/pks/lookup?op=get&fingerprint=on&search=0x
D47D55E0

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

Problem Installing lates PHP_5_2 CVS - Fatal error: Not valid internal .phar file (checksum error
user name
2007-01-06 15:05:25
Hello,

On 1/6/07, Sebastian Nohn <sebastiannohn.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;
> > ht
tp://greg.chiaraquartet.net/archives/160-problem-with-PHP_Ar
chive-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

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

Problem Installing lates PHP_5_2 CVS - Fatal error:Not valid internal .phar file (checksum error
user name
2007-01-06 15:06:04
Sebastian Nohn 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;
>> ht
tp://greg.chiaraquartet.net/archives/160-problem-with-PHP_Ar
chive-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.

Hi,

I spent quite a bit of time fixing up both phars yesterday,
and released
 new .phars at pear.php.net.  If you could confirm that the
.phars at
http://p
ear.php.net/install-pear-nozlib.phar or
http://pear.php.net/
go-pear.phar do *not* work with current CVS, then we
have a problem.  I need to know whether it works for you,
either way,
today if possible.

Thanks,
Greg

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

Problem Installing lates PHP_5_2 CVS - Fatal error:Not valid internal .phar file (checksum error
user name
2007-01-06 15:31:20
Hi Greg,

Greg Beaver wrote:
> Sebastian Nohn 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;
>>> ht
tp://greg.chiaraquartet.net/archives/160-problem-with-PHP_Ar
chive-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.
> 
> I spent quite a bit of time fixing up both phars
yesterday, and released
>  new .phars at pear.php.net.  If you could confirm that
the .phars at
> http://p
ear.php.net/install-pear-nozlib.phar or
> http://pear.php.net/
go-pear.phar do *not* work with current CVS, then we
> have a problem.  I need to know whether it works for
you, either way,
> today if possible.

Until yesterday evening (23:something MET yesterday was the
last time
tried), it worked, it didn't work since then (next try
10:something MET
today) and it doesn't work with the file from pear.php.net:

---------------------- cut here ----------------------
$ wget http://p
ear.php.net/install-pear-nozlib.phar -O 
   /tmp/install-pear-nozlib.phar
[...]
16:29:55 (273.68 KB/s) - `/tmp/install-pear-nozlib.phar'
saved
[3287079/3287079]

$ slash/opt/php/bin/php -n -dshort_open_tag=0 -dsafe_mode=0

   -dopen_basedir= -derror_reporting=E_ALL -dmemory_limit=-1

   -ddetect_unicode=0 /tmp/install-pear-nozlib.phar 
   -d $(pwd)slash/opt/php/lib -b $(pwd)/slash/opt/php/bin

Fatal error: Not valid internal .phar file (checksum error)
in
/tmp/install-pear-nozlib.phar on line 411

$ slash/opt/php/bin/php -v
PHP 5.2.1RC3-dev (cli) (built: Jan  6 2007 15:33:58)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend
Technologies
---------------------- cut here ----------------------

If it helps:

$ uname -a
Linux h939937 2.6.15-26-686 #1 SMP PREEMPT Fri Sep 8
20:16:40 UTC 2006
i686 GNU/Linux
$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang
--prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--enable-nls
--program-suffix=-4.0 --enable-__cxa_atexit
--enable-clocale=gnu
--enable-libstdcxx-debug --enable-java-awt=gtk-default
--enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre
--enable-mpfr --disable-werror --with-tune=pentium4
--enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)

- Sebastian

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )