ID:               45726
 Updated by:       [EMAIL PROTECTED]
 Reported By:      Bjorn dot Wiberg at its dot uu dot se
-Status:           Closed
+Status:           Open
 Bug Type:         PHAR related
 Operating System: *
 PHP Version:      5.3CVS-2008-08-06
 Assigned To:      helly
 New Comment:

Hi,
I can reproduce on BSD.

The php executable path (/usr/home/felipe/php5)  is being passed to
phar_set_stub_begin() in the $loader parameter, hence the binary is
included in string passed to $phar->setStub();


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

[2008-09-14 07:29:48] [EMAIL PROTECTED]

This bug has been fixed in CVS.

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.

Cannot reproduce, Iirc this did happen in earlier versions though.

Try running buildconf.

./buildconf --force && ./configure --disable-all --enable-phar && make
[...]
Generating phar.php
Generating phar.phar
Pear package PHP_Archive or Archive.php class file not found.
clicommand.inc
directorygraphiterator.inc
directorytreeiterator.inc
invertedregexiterator.inc
pharcommand.inc
phar.inc

Build complete.
Don't forget to run 'make test'.


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

[2008-08-29 12:26:01] rainer dot tammer at schulergroup dot com

Hello,
the same problem exists on AIX 5.2 / 5.3.
Bye
  Rainer

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

[2008-08-22 22:12:30] technopark02 at gmail dot com

This issue is easy to reproduce with php5.3-200808220630 on Solaris 10
x86/x64 as well.

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

[2008-08-13 19:25:03] [EMAIL PROTECTED]

Assigned to the PHAR maintainer.

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

[2008-08-06 08:03:49] Bjorn dot Wiberg at its dot uu dot se

Sorry, same error with 5.3-dev (5.3-200808060630):

---8<--- excerpt ---8<---
t/power_510_32/usr/lib
-L/gestconf/project/GNOME_ACL/GNOME/build/acc_gnome2_14_0f1/export/power_510_32/usr/lib
-L/gestconf/project/GNOME_ACL/GNOME/build/GNOME_2_14_0/export/power_510_32/usr/lib
-L/users/project/PDP/PDP_51_vac_6_14/usr/ccs/lib
-L/users/project/PDP/PDP_51_vac_6_14/usr/lib -lz -lm -lz -ljpeg -lssl
-lcrypto -lgdbm -lbz2 -lz -lssl -lcrypto -lm -lz -liconv -lm -lcurl
-lssl -lcrypto -lz -lssl -lcrypto -lz -lz -liconv -lm -lz -liconv -lm
-lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz
-liconv -lm -lz -liconv -lm -lxslt -lz -liconv -lm -lxml2 -lpthread -lz
-liconv -lm -lz -liconv -lm
-Wl,-blibpath:/usr/local/lib:/opt/freeware/lib:/usr/X11R6/lib:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/../../..:/usr/lib:/lib

ld: 0711-224 WARNING: Duplicate symbol: php_optidx
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
ld: 0711-783 WARNING: TOC overflow. TOC size: 72664     Maximum size:
65536
        Extra instructions are being generated for each reference to a
TOC
        symbol if the symbol is in the TOC overflow area.
Generating phar.php
Generating phar.phar
Pear package PHP_Archive or Archive.php class file not found.

Fatal error: Uncaught exception 'PharException' with message 'illegal
stub for phar
"/home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.phar"' in
/home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php:994
Stack trace:
#0 /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php(994):
Phar->setStub('#!/apache/php/b...')
#1 /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php(1054):
PharCommand->phar_set_stub_begin(Object(Phar), '/home/bwiberg/r...',
'/home/bwiberg/r...', '/apache/php/bin...')
#2 [internal function]: PharCommand->cli_cmd_run_pack(Array)
#3 /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php(225):
call_user_func(Array, Array)
#4 /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php(2073):
CLICommand->__construct(19, Array)
#5 {main}
  thrown in
/home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php on line
994
make: *** [ext/phar/phar.phar] Error 255
Bad exit status from /var/opt/freeware/tmp/rpm-tmp.10312 (%build)

[EMAIL PROTECTED]:~/rpm/SPECS$ cd ..
[EMAIL PROTECTED]:~/rpm$ cd BUILD/php5.3-200808060630/
[EMAIL PROTECTED]:~/rpm/BUILD/php5.3-200808060630$
/opt/freeware/bin/find -iname Archive.php
[EMAIL PROTECTED]:~/rpm/BUILD/php5.3-200808060630$ 
--->8--- end excerpt --->8---

(No Archive.php anywhere...)

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/45726

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

Reply via email to