|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52683 couldn't create phar on osx
Submitted: 2010-08-24 05:04 UTC Modified: 2010-08-24 13:12 UTC
From: jinmoku at hotmail dot com Assigned:
Status: Not a bug Package: PHAR related
PHP Version: 5.3.3 OS: OSX 10.6.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jinmoku at hotmail dot com
New email:
PHP Version: OS:


 [2010-08-24 05:04 UTC] jinmoku at hotmail dot com
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 :

Test script:
$phar = new Phar('MyPhar.phar');

$index = <<<DOC
	echo 'hello';
$phar->addFromString('index.php', $index);


Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-24 13:12 UTC]
-Status: Open +Status: Bogus
 [2010-08-24 13:12 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

You have to use the phar:// stream to access the contents
 [2010-08-24 13:39 UTC] jinmoku at hotmail dot com
documentation said :

include 'coollibrary.phar';

don't work too
 [2010-08-26 04:53 UTC] jinmoku at hotmail dot com
in make test :
FAIL Phar: test readfile() interception [ext/phar/tests/readfile.phpt]


I'm sorry but it's really a bug
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Aug 02 21:01:24 2021 UTC