Edit report at http://bugs.php.net/bug.php?id=51889&edit=1

 ID:               51889
 User updated by:  dmda at yandex dot ru
 Reported by:      dmda at yandex dot ru
 Summary:          go-pear will fail, miserably
-Status:           Feedback
+Status:           Open
 Type:             Bug
 Package:          PHAR related
 Operating System: Win32
 PHP Version:      5.3.2

 New Comment:

I noticed exactly the same bug report submitted in the past for 5.3.0
and it was closed saying the CVS version was fixed. It appears now that
the problem was either not fixed or some further fixes recreated the
problem again...



Yep, with this extra option go-pear runs without the error.

But what does corrupt the phar hash so disabling it fixes the problem?

Is there a design problem? Is there a way for the phar to detect
consistency problems so it could rebuild the hash automatically? Is
there a way for the official builds to distribute PEAR's phar in a
consistent way? Is there a way to have related tests in phpt form?


Previous Comments:
------------------------------------------------------------------------
[2010-05-23 22:18:44] [email protected]

Try open go-pear.bat and find this line:

%PHP_BIN% -d output_buffering=0 PEAR\go-pear.phar



and change it do:

%PHP_BIN% -d output_buffering=0 -d phar.require_hash=0 PEAR\go-pear.phar

------------------------------------------------------------------------
[2010-05-22 22:38:48] dmda at yandex dot ru

Description:
------------
go-pear.bat throws warnings and errors.



C:\php5>go-pear.bat

phar "C:\php5\PEAR\go-pear.phar" does not have a signature

Warning: require_once(phar://go-pear.phar/index.php): failed to open
stream: pha

r error: invalid url or non-existent phar
"phar://go-pear.phar/index.php" in C:\

php5\PEAR\go-pear.phar on line 1236

Press any key to continue . . .





------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51889&edit=1

Reply via email to