php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48753 go-pear.bat / phar not working
Submitted: 2009-07-01 11:16 UTC Modified: 2009-08-02 22:19 UTC
Votes:7
Avg. Score:4.0 ± 0.8
Reproduced:7 of 7 (100.0%)
Same Version:7 (100.0%)
Same OS:4 (57.1%)
From: bjoern at xrow dot de Assigned: cellog (profile)
Status: Closed Package: PHAR related
PHP Version: 5.3.0 OS: WINDOWS VISTA
Private report: No CVE-ID: None
 [2009-07-01 11:16 UTC] bjoern at xrow dot de
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
Dr?cken Sie eine beliebige Taste . . .

Expected result:
----------------
it should install pear


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-01 11:39 UTC] pajoye@php.net
Greg, do you have to regenerate the phar in cvs or is there something else broken?


 [2009-07-03 10:05 UTC] rclerkin at gmail dot com
In the mean time there is a workaround here;

http://lenss.nl/2008/07/pear-install-weirdness/

I have used this to install pear successfuly with 5.3.0
 [2009-07-16 18:45 UTC] justme at some dot com
(this applies to WinXP as well)
Great, yeat another NEW bug in PHP!
Since 5.2, every time a new version appears, it is WORSE than previous and takes hours of workaround work to get it to work as expected.

The EXIF extension has not worked since 5.2 and it still doesn't and now they have managed to get even the go-pear.bat broken.

Don't they test anything anymore?
 [2009-07-16 18:48 UTC] bjoern at xrow dot de
learn c and fix it on your own.

your comment was not helpfull to solve this bug.
 [2009-07-16 19:35 UTC] shank1969 at hotmail dot com
http://lenss.nl/2008/07/pear-install-weirdness/ = 404. Any other ideas?
 [2009-07-16 19:39 UTC] pajoye@php.net
See http://news.php.net/php.internals/44569

Can you guys simply regenerate this phar please?
 [2009-08-02 22:19 UTC] cellog@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 [2010-10-01 09:41 UTC] nospam at marcmittag dot de
I have the same problem today with this package on win xp: php-5.3.3-Win32-VC6-x86.zip. Exactly the same error-message as orignally posted in the bug report.
 [2010-10-15 14:28 UTC] jwspam1 at GMAIL dot COM
The same thing in php-5.3.3-nts-Win32-VC6-x86.msi

Is it at all possible for you people to test things before releasing them?

(The workaround is to replace go-pear.bat with this:
@ECHO OFF
set PHP_BIN=php.exe
%PHP_BIN% -d output_buffering=0 -d phar.require_hash=0 PEAR\go-pear.phar
pause
)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 06:01:29 2024 UTC