php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45336 Compile breaks on Generating phar.phar
Submitted: 2008-06-23 15:02 UTC Modified: 2008-07-02 13:50 UTC
Votes:4
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:4 (100.0%)
Same OS:4 (100.0%)
From: pahan at hubbitus dot spb dot su Assigned:
Status: Closed Package: PHAR related
PHP Version: 5.3CVS-2008-06-23 (snap) OS: Linux
Private report: No CVE-ID: None
 [2008-06-23 15:02 UTC] pahan at hubbitus dot spb dot su
Description:
------------
Compilation breaks on Generating phar.phar after generate of phar.php.

Last few strings of output are:
/bin/sh /usr/src/redhat/BUILD/php5.3-200806231230/build-cgi/libtool --silent --preserve-dup-deps --mode=install c
p ext/zip/zip.la /usr/src/redhat/BUILD/php5.3-200806231230/build-cgi/modules
Generating phar.php
Generating phar.phar
Unknown parameter '-f' to command pack, check ext/phar/phar.php help
make: *** [ext/phar/phar.phar] Error 1


Reproduce code:
---------------
configure
make :)
I anticipate that it is not depend of configure options, if --disable-phar not present.


Expected result:
----------------
Compile successfully.

Actual result:
--------------
Last error comes from command:

/usr/src/redhat/BUILD/php5.3-200806230630/build-cgi/sapi/cli/php -n -d extension_dir=/usr/src/redhat/BUILD/php5.3-200806230630/build-cgi/modules -d open_basedir= -d output_buffering=0 -d memory_limit=-1 -d phar.readonly=0 ext/phar/phar.php pack -f ext/phar/phar.phar -a pharcommand -c auto -x CVS -p 0 -s /usr/src/redhat/BUILD/php5.3-200806230630/ext/phar/phar/phar.php -h sha1 -b /usr/bin/php /usr/src/redhat/BUILD/php5.3-200806230630/ext/phar/phar/

So, check help:
bash-3.2$ /usr/src/redhat/BUILD/php5.3-200806230630/build-cgi/sapi/cli/php -n -d extension_dir=/usr/src/redhat/BUILD/php5.3-200806230630/build-cgi/modules -d open_basedir= -d output_buffering=0 -d memory_limit=-1 -d phar.readonly=0 ext/phar/phar.php help pack
pack  Pack files into a PHAR archive.
      When using -s <stub>, then the stub file is being excluded from the list of
      input files/dirs.To create an archive that contains PEAR class PHP_Archiave
      then point -p argument to PHP/Archive.php.
      
      Required arguments:
      -F  <file>   Specifies the phar file to work on.
      ...          Any number of input files and directories. If -i is in use
                   then ONLY files and matching thegiven regular expression are
                   being packed. If -x is given then files matching that
                   regular expression are NOT being packed.

Ok, try -F instead of -f, get another error:
bash-3.2$ /usr/src/redhat/BUILD/php5.3-200806230630/build-cgi/sapi/cli/php -n -d extension_dir=/usr/src/redhat/BUILD/php5.3-200806230630/build-cgi/modules -d open_basedir= -d output_buffering=0 -d memory_limit=-1 -d phar.readonly=0 ext/phar/phar.php pack -F ext/phar/phar.phar -a pharcommand -c auto -x CVS -p 0 -s /usr/src/redhat/BUILD/php5.3-200806230630/ext/phar/phar/phar.php -h sha1 -b /usr/bin/php /usr/src/redhat/BUILD/php5.3-200806230630/ext/phar/phar/
Unknown parameter '-a' to command pack, check ext/phar/phar.php help

Removing -a, and other parameters, which are unknown do not give result.
It seems as make-command from Phar 2.0 on old Phar extension 1.49.2.8.

Furthermore, it seems as old phar.php in new phar 2.0:
bash-3.2$ /usr/src/redhat/BUILD/php5.3-200806230630/build-cgi/sapi/cli/php -n -d extension_dir=/usr/src/redhat/BUILD/php5.3-200806230630/build-cgi/modules -d open_basedir= -d output_buffering=0 -d memory_limit=-1 -d phar.readonly=0 ext/phar/phar.php version
PHP Version:               5.3.0-dev
phar.phar version:         $Revision: 1.49.2.8 $
Phar EXT version:          2.0.0b2-dev
Phar API version:          1.1.1
Phar-based phar archives:  enabled
Tar-based phar archives:   enabled
ZIP-based phar archives:   enabled
gzip compression:          enabled
bzip2 compression:         enabled
supported signatures:      MD5, SHA-1, SHA-256, SHA-512, OpenSSL


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-29 22:21 UTC] pahan at hubbitus dot spb dot su
I'm build snapshot 200806291230. Now all seems Ok.
Very thanks.
 [2008-06-29 22:32 UTC] felipe@php.net
.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 03:01:28 2024 UTC