ID: 45726
Updated by: [EMAIL PROTECTED]
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:
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) "��l
.�k
..-�l
buildmk.stamp��.�l
CVS��l▒
.cvsignoreB�.gdbinitw�U��CODING_STANDARDS�j��CREDITS��l
Previous Comments:
------------------------------------------------------------------------
[2008-09-14 13:48:05] [EMAIL PROTECTED]
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] [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.
------------------------------------------------------------------------
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