Bug #52683 [Com]: couldn't create phar on osx
| From: | jinmoku at hotmail dot com | Date: | Thu, 26 Aug 2010 02:53:45 +0000 |
| Subject: | Bug #52683 [Com]: couldn't create phar on osx | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-153796@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52683&edit=1
ID: 52683
Comment by: jinmoku at hotmail dot com
Reported by: jinmoku at hotmail dot com
Summary: couldn't create phar on osx
Status: Bogus
Type: Bug
Package: PHAR related
Operating System: OSX 10.6.4
PHP Version: 5.3.3
Block user comment: N
New Comment:
in make test :
FAIL Phar: test readfile() interception [ext/phar/tests/readfile.phpt]
ACTUAL RESULT :
????
I'm sorry but it's really a bug
Previous Comments:
------------------------------------------------------------------------
[2010-08-24 13:39:58] jinmoku at hotmail dot com
documentation said :
<?php
include 'coollibrary.phar';
?>
http://www.php.net/manual/en/phar.using.intro.php
and
require_once('phar://MyPhar.phar/index.php');
don't work too
------------------------------------------------------------------------
[2010-08-24 13:12:04] johannes@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
You have to use the phar:// stream to access the contents
------------------------------------------------------------------------
[2010-08-24 05:04:34] jinmoku at hotmail dot com
Description:
------------
when i'am create phar on osx (php 5.3.3), some weird charaters apprear
(in the phar)
I can't copy phar's source (weird charaters dont pass)
phar link : http://backfront.org/bugs/MyPhar.phar
Test script:
---------------
$phar = new Phar('MyPhar.phar');
$index = <<<DOC
<?php
echo 'hello';
DOC;
$phar->addFromString('index.php', $index);
require_once('MyPhar.phar');
Expected result:
----------------
hello
Actual result:
--------------
��????
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52683&edit=1