Bug #67681 [Opn]: declare(encoding='UTF-8') causes "Warning: Unexpected character in input"
Edit report at https://bugs.php.net/bug.php?id=67681&edit=1
ID: 67681
User updated by: dqneoo at gmail dot com
Reported by: dqneoo at gmail dot com
Summary: declare(encoding='UTF-8') causes "Warning:
Unexpected character in input"
Status: Open
Type: Bug
Package: Scripting Engine problem
Operating System: Linux
-PHP Version: master-Git-2014-07-24 (Git)
+PHP Version: PHP5.4,5.5,5.6,5.7dev
Block user comment: N
Private report: N
New Comment:
specify php version
Previous Comments:
------------------------------------------------------------------------
[2014-07-25 00:27:43] dqneoo at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=67681&edit=1
Thread (4 messages)