From: pahan at hubbitus dot spb dot su
Operating system: Linux
PHP version: 5.3CVS-2008-06-23 (snap)
PHP Bug Type: *Compile Issues
Bug description: Compile breaks on Generating phar.phar
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
--
Edit bug report at http://bugs.php.net/?id=45336&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45336&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45336&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45336&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45336&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45336&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45336&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45336&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45336&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45336&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45336&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45336&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45336&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45336&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45336&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45336&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45336&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45336&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45336&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45336&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45336&r=mysqlcfg