From: dqneoo at gmail dot com
Operating system: Linux
PHP version: master-Git-2014-07-24 (Git)
Package: Scripting Engine problem
Bug Type: Bug
Bug description:declare(encoding='UTF-8') causes "Warning: Unexpected character in
input"
Description:
------------
declare(encoding='UTF-8'); causes Warning under the environment of
zend.multibyte=On and mbstring.internal_encoding="EUC_JP"
Test script:
---------------
a.php
-----
<?php
declare(encoding='UTF-8');
// ããã
-----
$ ./configure --enable-mbstring --enable-debug
$ make
$ ./sapi/cli/php -d zend.multibyte=On -d
mbstring.internal_encoding="EUC_JP" a.php
Expected result:
----------------
No warnings
Actual result:
--------------
Warning: Unexpected character in input: ' in
/home/vagrant/src/php-src/a.php on line 4
Warning: Unexpected character in input: ' in
/home/vagrant/src/php-src/a.php on line 4
Warning: Unexpected character in input: ' in
/home/vagrant/src/php-src/a.php on line 4
--
Edit bug report at https://bugs.php.net/bug.php?id=67681&edit=1
--