Edit report at http://bugs.php.net/bug.php?id=51889&edit=1
ID: 51889 Updated by: ka...@php.net Reported by: dmda at yandex dot ru Summary: go-pear will fail, miserably -Status: Open +Status: Assigned Type: Bug Package: PHAR related Operating System: Win32 PHP Version: 5.3.2 -Assigned To: +Assigned To: pajoye New Comment: The issue here is that the go-pear.phar file doesn't have a signature, by default Phar will require a signature to execute the phar file, the phar.require_hash=0 disables this requirement which makes it work. Assigning this to Pierre, since I don't have a snapshot template, nor did I see it anywhere in SVN to fix this. Previous Comments: ------------------------------------------------------------------------ [2010-05-24 09:13:36] dmda at yandex dot ru 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? ------------------------------------------------------------------------ [2010-05-23 22:18:44] ka...@php.net 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