PHP :: Bug #50578 :: incorrect shebang in phar.phar

Bug #50578 incorrect shebang in phar.phar
Submitted: 2009-12-26 12:26 UTC Modified: 2010-06-16 20:30 UTC
Votes:4
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

 [2009-12-26 12:26 UTC] Fedora at FamilleCollet dot com

Description:
------------
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)




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

 [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] pajoye@php.net

-Assigned To: cellog +Assigned To: dufuz

 [2010-03-05 01:04 UTC] pajoye@php.net

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] pajoye@php.net

-Assigned To: dufuz +Assigned To: cellog

 [2010-03-05 01:16 UTC] pajoye@php.net

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] fat@php.net

fyi, the patch looks good to me.

 [2010-06-16 20:19 UTC] pajoye@php.net

-Assigned To: cellog +Assigned To: pajoye

 [2010-06-16 20:30 UTC] pajoye@php.net

-Status: Assigned +Status: Closed

 [2010-06-16 20:30 UTC] pajoye@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.