php.net |  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
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
Status: Closed Package: PHAR related
PHP Version: 5.3.2RC1 OS: Linux (Fedora 12)
Private report: No CVE-ID:
 [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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-26 12:28 UTC] Fedora at FamilleCollet dot com
Trivial which fix the issue :
http://remi.fedorapeople.org/php-5.3.2-phar.patch
 [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
Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&revision=300499
Log: - Fix bug #50578, incorrect shebang in phar.phar
 [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.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 17 16:02:22 2014 UTC