ID:               45336
 Updated by:       [EMAIL PROTECTED]
 Reported By:      pahan at hubbitus dot spb dot su
-Status:           Open
+Status:           Feedback
 Bug Type:         *Compile Issues
 Operating System: Linux
 PHP Version:      5.3CVS-2008-06-23 (snap)
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.3-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.3-win32-installer-latest.msi




Previous Comments:
------------------------------------------------------------------------

[2008-06-23 15:02:10] 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



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45336&edit=1

Reply via email to