Hi,

On Sun, 2008-03-23 at 15:26 +0100, Hannes Magnusson wrote:

> >  You can provide a --SKIPIF-- section to detect MB support 
> > (http://qa.php.net/write-test.php ).
> >  --SKIPIF--
> >  <?php
> >  if (!in_array("detect_unicode", array_keys(ini_get_all()))) {
> >   die "skip Requires --enable-zend-multibyte option";
> 
> WTF? Where did that INI entry come from? :)
> 
> It isn't in php.ini-dist and the only docs I can find is
> (http://no.php.net/manual/en/ini.php):
> detect_unicode        "1"     PHP_INI_ALL     Available since PHP 5.1.0.
> Removed in PHP 6.0.0.

According to my research when the MB issues popped up that setting was
added as a hack to help the scanner to have less confusion with it's
encoding detection when using __HALT_COMPILER(); There's an internals
discussion, but i don't have it at hand right now.

> Is it really PHP_INI_ALL? That doesn't make much sense to me. I
> thought the multibyte scanning was compile time?
> (Or is it like the current short_tags proposal;
> ini_set("detect_unicode"); include "..."; ?)

Yes, it's for the latter, I guess.

johannes


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

Reply via email to