Bug #67681 [NEW]: declare(encoding='UTF-8') causes "Warning: Unexpected character in input"

From: Date: Fri, 25 Jul 2014 00:27:43 +0000
Subject: Bug #67681 [NEW]: declare(encoding='UTF-8') causes "Warning: Unexpected character in input"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186806@lists.php.net to get a copy of this message
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
-- 



Thread (4 messages)

« previous php.bugs (#186806) next »