Bug #52683 [NEW]: couldn't create phar on osx
| From: | jinmoku at hotmail dot com | Date: | Tue, 24 Aug 2010 03:04:35 +0000 |
| Subject: | Bug #52683 [NEW]: couldn't create phar on osx | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-153731@lists.php.net to get a copy of this message | ||
From:
Operating system: OSX 10.6.4
PHP version: 5.3.3
Package: PHAR related
Bug Type: Bug
Bug description:couldn't create phar on osx
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 bug report at http://bugs.php.net/bug.php?id=52683&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52683&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52683&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52683&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52683&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52683&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52683&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52683&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52683&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52683&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52683&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52683&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52683&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52683&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52683&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52683&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52683&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52683&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52683&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52683&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52683&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52683&r=mysqlcfg