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

From: Date: Tue, 16 Sep 2008 12:03:51 +0000
Subject: #45726 [Opn]: PHP_Archive / Archive.php missing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-129018@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:

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---


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

[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

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

[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.

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

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 (#129018) next »