Hi Sebastian

2011/8/11 Sebastian Krebs <sebastian.krebs.ber...@googlemail.com>:
> 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]
>

In PHP 5.4, the compile time switch was removed and made into an ini
directive, which lives under the name of zend.multibyte = [On|Off].

For the question about declare's availability: No Zend Multibyte
support does not make the engine ignore the construct totally, as we
also got another statement; ticks that can be used in declare aswell.

For the question about why its not enabled by default? Performance,
you don't want to enable multibyte support when most of your code
lives in a single byte char format anyway, some calls are most costly
because you can no longer jump just one byte and have to validate what
kind of character sequence we're at now.


-- 
regards,

Kalle Sommer Nielsen
ka...@php.net

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to