Re: RE : [PHP-DEV] Re: RE : [PATCH] zend-multibyte unicode detection vs. __halt_compiler()

From: Date: Mon, 01 Oct 2007 22:21:37 +0000
Subject: Re: RE : [PHP-DEV] Re: RE : [PATCH] zend-multibyte unicode detection vs. __halt_compiler()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-32527@lists.php.net to get a copy of this message
Changing 'detect_unicode' disabled as default is a possible solution. But, it might cause some backward incompatibility issues. If no one gives any objection within a coupled of days, I will commit the change ('detect_unicode' will be disabled by default). Rui On Thu, 27 Sep 2007 18:37:57 +0200 LAUPRETRE François (P) <francois.laupretre@ratp.fr> wrote: > > From: Rui Hirokawa [mailto:rui_hirokawa@ybb.ne.jp] > > > > 1.set detect_unicode = Off > > 2.adding declare(encoding="encoding_name") on the first line > > of script can be your solution ? > > The 'declare' statement is not a solution because unicode detection is done before it > is seen. So, PHK and PHAR remain incompatible with zend_multibyte. > > Can you confirm that unicode detection does not exist in PHP 6 (keeping only > 'declare' statements) ? > > As a workaround in PHP 5, would it be possible to add a 'detect_unicode=off' line in > php.ini-dist and php.ini-recommended ? > > Regards > > Francois > -- Rui Hirokawa <rui_hirokawa@ybb.ne.jp>

« previous php.internals (#32527) next »