#45726 [Opn]: PHP_Archive / Archive.php missing

From: Date: Tue, 16 Sep 2008 12:21:02 +0000
Subject: #45726 [Opn]: PHP_Archive / Archive.php missing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-129019@lists.php.net to get a copy of this message
 ID:               45726
 User updated by:  Bjorn dot Wiberg at its dot uu dot se
 Reported By:      Bjorn dot Wiberg at its dot uu dot se
 Status:           Open
 Bug Type:         PHAR related
 Operating System: *
 PHP Version:      5.3CVS-2008-08-06
 Assigned To:      helly
 New Comment:

Noticed that buildconf checks the MAKE environment variable, so made
sure that it uses GNU make by setting MAKE on the command line. Then the
buildconf call works.

But the PHAR error persists. (And, --disable-all --enable-phar is not
very useful, right?)

So, again, awaiting any response to felipe's comments.

---8<---
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: 73936     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-200809161030/ext/phar/phar.phar"' in
/home/bwiberg/rpm/BUILD/php5.3-200809161030/ext/phar/phar.php:994
Stack trace:
#0 /home/bwiberg/rpm/BUILD/php5.3-200809161030/ext/phar/phar.php(994):
Phar->setStub('#!/apache/php/b...')
#1 /home/bwiberg/rpm/BUILD/php5.3-200809161030/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-200809161030/ext/phar/phar.php(225):
call_user_func(Array, Array)
#4 /home/bwiberg/rpm/BUILD/php5.3-200809161030/ext/phar/phar.php(2073):
CLICommand->__construct(19, Array)
#5 {main}
  thrown in
/home/bwiberg/rpm/BUILD/php5.3-200809161030/ext/phar/phar.php on line
994
make: *** [ext/phar/phar.phar] Error 255
Bad exit status from /var/opt/freeware/tmp/rpm-tmp.12271 (%build)
bwiberg@melody-lp04:~/rpm/SPECS$
--->8---


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

[2008-09-16 12:03:51] Bjorn dot Wiberg at its dot uu dot se

It doesn't like my autoconf, so running buildconf is unfortunately a
no-go for me...

Awaiting responses to felipe's comments instead -- they sound very
interesting!

Best regards,
Björn


---8<---
+ ./buildconf --force
Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.59 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
           Running cvsclean for you.
           To avoid this, install autoconf-2.13.
"build/build2.mk", line 32: make: Dependency line needs colon or double
colon operator.
"build/build2.mk", line 33: make: Dependency line needs colon or double
colon operator.
"build/build2.mk", line 35: make: Dependency line needs colon or double
colon operator.
make: Fatal errors encountered -- cannot continue.
make: The error code from the last command is 2.
--->8---

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

[2008-09-14 15:13:07] felipe@php.net

s/php executable path/php directory/

The file_get_contents() is reading the dir. as a real file.

sapi/cli/php -r 'var_dump(file_get_contents("/home/felipe/php5"));'

string(2560) "&#65533;&#65533;l
                 .&#65533;k
                    ..-&#65533;l
buildmk.stamp&#65533;&#65533;.&#65533;l      
CVS&#65533;&#65533;l&#9618;
.cvsignoreB&#65533;.gdbinitw&#65533;U&#65533;&#65533;CODING_STANDARDS&#65533;j&#65533;&#65533;CREDITS&#65533;&#65533;l


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

[2008-09-14 13:48:05] felipe@php.net

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();

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

[2008-09-14 07:29:48] helly@php.net

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

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

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



Thread (14 messages)

« previous php.bugs (#129019) next »