|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50578 incorrect shebang in phar.phar
Submitted: 2009-12-26 12:26 UTC Modified: 2010-06-16 20:30 UTC
Avg. Score:4.2 ± 0.8
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:1 (33.3%)
From: Fedora at FamilleCollet dot com Assigned: pajoye (profile)
Status: Closed Package: PHAR related
PHP Version: 5.3.2RC1 OS: Linux (Fedora 12)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: Fedora at FamilleCollet dot com
New email:
PHP Version: OS:


 [2009-12-26 12:26 UTC] Fedora at FamilleCollet dot com
default PHP_PHARCMD_BANG is PHP_EXCUTABLE which is relative to top_builddir.

This result to a php.phar which include a bad path to php.

Until PHP 5.3.1, PHP_EXCUTABLE was not set (by default) on Makefile, so all works fine

With 5.3.2RC1, PHP_EXCUTABLE is set to $(top_builddir)/$(SAPI_CLI_PATH)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-26 12:28 UTC] Fedora at FamilleCollet dot com
Trivial which fix the issue :
 [2010-02-12 14:19 UTC] Fedora at famillecollet dot com
Same issue with PHP 5.3.2RC2
 [2010-03-04 22:30 UTC] Fedora at famillecollet dot com
Same issue with 5.3.2 finale.
 [2010-03-05 01:04 UTC]
-Assigned To: cellog +Assigned To: dufuz
 [2010-03-05 01:04 UTC]
Please take a look at this patch and let us know if it works. It would rock if it can make it in the next release.
 [2010-03-05 01:16 UTC]
-Assigned To: dufuz +Assigned To: cellog
 [2010-03-05 01:16 UTC]
Greg, can you valid and apply the patch please? Or simply valid it and I can apply it if it looks fine for you.
 [2010-06-14 09:12 UTC] gerwin at uber1337 dot nl
Thanks for the patch Remi, it works just fine. It's an annoying bug though when you need to build rpm packages too and it would be nice to see it fixed.
 [2010-06-16 19:43 UTC]
fyi, the patch looks good to me.
 [2010-06-16 20:19 UTC]
-Assigned To: cellog +Assigned To: pajoye
 [2010-06-16 20:30 UTC]
Automatic comment from SVN on behalf of pajoye
Log: - Fix bug #50578, incorrect shebang in phar.phar
 [2010-06-16 20:30 UTC]
-Status: Assigned +Status: Closed
 [2010-06-16 20:30 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Aug 18 07:05:45 2022 UTC