Multibyte and declate (PHP5.4)
| From: | Sebastian Krebs | Date: | Thu, 11 Aug 2011 20:11:36 +0000 |
| Subject: | Multibyte and declate (PHP5.4) | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-54510@lists.php.net to get a copy of this message | ||
Hi,
With PHP5.4 I get this warning
| Warning: declare(encoding=...) ignored because Zend multibyte feature
| is turned off by settings in [..]
because of
| declare(encoding = 'UTF-8');
An except from the manual [1]
The encoding declare value is ignored in PHP 5.3 unless php is compiled with --enable-zend-multibyte.Does this really means, that this declare statement is _ignored_, when PHP is _not_ compiled with "--enable-zend-multibyte", but it yields a warning (and not even just a notice), when it is (what is default now)? That feels a little bit inconsistent to me. And btw: Its probably asked before, but is there a reason, why multibyte-support is disabled by default? Regards, Sebastian [1] http://php.net/manual/en/control-structures.declare.php