Bug #53199 [PATCH]: Phar doesn't work with '--enable-zend-multibyte' option
| From: | cataphract@php.net | Date: | Thu, 18 Nov 2010 07:47:40 +0000 |
| Subject: | Bug #53199 [PATCH]: Phar doesn't work with '--enable-zend-multibyte' option | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-156137@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53199&edit=1
ID: 53199
Patch added by: cataphract@php.net
Reported by: brt dot river at gmail dot com
Summary: Phar doesn't work with '--enable-zend-multibyte'
option
Status: Open
Type: Bug
Package: PHAR related
Operating System: Mac OS X 10.6
PHP Version: 5.3.3
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: bug53199.patch
Revision: 1290066459
URL:
http://bugs.php.net/patch-display.php?bug=53199&patch=bug53199.patch&revision=1290066459
Previous Comments:
------------------------------------------------------------------------
[2010-11-18 07:02:28] php at group dot apple dot com
I have been debugging a similar report with the phar CLI. Executing "php
phar.php"
(using the generated php/ext/phar/phar.php) works properly, but the
resulting
phar.phar does not. I have tried modifying the stub (via phar.php) to
print
debugging information but that only produces more "?" characters.
Attempting to
debug with Xdebug and MacGDBp wouldn't step through the first line
before
terminating.
------------------------------------------------------------------------
[2010-10-29 10:22:36] brt dot river at gmail dot com
Description:
------------
I'm using PHP 5.3.3 with '--enable-zend-multibyte' under Mac OS X.
My script calls my phar archive directly, The result characters are
garbled.
Test script:
---------------
* create.php
<?php
@unlink('sample.phar');
try {
$phar = new Phar(dirname(__FILE__) . '/sample.phar');
$phar->setStub('<?php echo "test" .PHP_EOL; __HALT_COMPILER();');
} catch (Exception $e) {
echo 'Cannot open file: ', $e;
}
When I call this phar which I made like below,
$ php create.php
$ php sample.phar
Expected result:
----------------
$ php sample.phar
test
Actual result:
--------------
$ php sample.phar
?
If I tried to use the version of PHP without '--enable-zend-multibyte',
I got the expected result.
So I found that phar does not work with '--enable-zend-multibyte'.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53199&edit=1