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: 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 Previous Comments: ------------------------------------------------------------------------ [2010-08-24 13:12:04] [email protected] 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
