Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_3) / Zend.m4 zend.c zend_compile.c zend_globals.h zend_highlight.c zend_language_scanner.c
zend_language_scanner.h zend_language_scanner.l zend_language_scanner_defs.h zend_multibyte.h
| From: | Rui Hirokawa | Date: | Sat, 05 Jul 2008 13:48:54 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_3) / Zend.m4 zend.c zend_compile.c zend_globals.h zend_highlight.c zend_language_scanner.c zend_language_scanner.h zend_language_scanner.l zend_language_scanner_defs.h zend_multibyte.h |
||
| References: | 1 2 | Groups: | php.internals php.zend-engine.cvs |
| Request: | Send a blank email to internals+get-38773@lists.php.net to get a copy of this message | ||
Derick,
Thank you for bug report.
I found a very sinple scipt (t1.php, shown below)
causes segmentation error or stack error
using PHP 5.3 compiled with --enable-zend-multibyte.
It works fine with PHP 5.2.
php.ini
---
mbstring.internal_encoding = UTF-8
mbstring.script_encoding = SJIS
--
t1.php
<?php
$az="a";
?>
Current implementation of zend-multibyte for PHP 5.3
is ported from PHP 5.2 with minimal changes.
I think that the incompatibilities between flex and re2c cause the
problem.
Marcus,
Do you have any comments ?
Rui
On Thu, 3 Jul 2008 10:04:30 +0200 (CEST)
Derick Rethans <derick@php.net> wrote:
> On Sun, 29 Jun 2008, Rui Hirokawa wrote:
>
> > hirokawa Sun Jun 29 08:21:36 2008 UTC
> >
> > Modified files: (Branch: PHP_5_3)
> > /ZendEngine2 Zend.m4 zend.c zend_compile.c zend_globals.h
> > zend_highlight.c zend_language_scanner.c
> > zend_language_scanner.h zend_language_scanner.l
> > zend_language_scanner_defs.h zend_multibyte.h
> > Log:
> > implemented again zend-multibyte for PHP 5.3
>
> I found a bug with this, run the attached script with both multi-byte on
> and off, and you'll see it.
>
> regards,
> Derick
--
Rui Hirokawa <rui_hirokawa@ybb.ne.jp>