Re: Zend Multibyte support
| From: | Rui Hirokawa | Date: | Thu, 03 Nov 2011 06:53:56 +0000 |
| Subject: | Re: Zend Multibyte support | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-56017@lists.php.net to get a copy of this message | ||
Hi,
It is almost same for me.
What kind of configure option you are using ?
For me (Ubuntu 11.10),
if I made PHP-5.4 with 'configure --enable-mbstring', it works fine.
But, if I made it with 'configure --enable-mbstring
--with-apxs2=/usr/bin/apxs2', a Shift_JIS encoded PHP script causes the
parser error.
For both cases, zend.multibyte and zend.script_encoding can be specified.
I believe that it was OK in Ubuntu 11.04 with the same option
(--with-axps2).
Rui
Yasuo Ohgaki wrote:
> Hi all,
>
> I noticed that "Zend Multibyte Support" won't be on with
>
> ./sapi/cli/php -d zend.multibyte=1
> nor
> zend.multibyte=on (in php.ini)
>
> This happens both php-src and php-src-5.4.
>
> According to php.ini-production from php-src:
> ; If enabled, scripts may be written in encodings that are incompatible with
> ; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such
> ; encodings. To use this feature, mbstring extension must be enabled.
> ; Default: Off
> ;zend.multibyte = Off
>
> I thought it became runtime option.
> Is this a bug or am I missing something?
>
> --
> Yasuo Ohgaki
> yohgaki@ohgaki.net
>