Re: --enable-zend-multibyte

From: Date: Thu, 29 Jul 2010 21:58:01 +0000
Subject: Re: --enable-zend-multibyte
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-49177@lists.php.net to get a copy of this message
Hi, On Thu, 2010-07-29 at 21:26 +0200, Ferenc Kovacs wrote: > Hi. > > Could we set the --enable-zend-multibyte configure option to be > enabled by default for the trunk? > http://bugs.php.net/bug.php?id=22108 Ignoring the BOF might cause not expected behavior: Assume people are using PHP as "templating" language and want the BOM to go out to the client. So the fix for this might be to store the BOM, then wait till the first other output is being made and then send BOM+output. This would cost some little parsing time and maybe a bit more. The Zend Multibyte mode has a few more effects, like changing the encoding of parsed files in memory etc. which cost time and might have other consequences, this should be kept as a feature for the ones knowing what it does (they actually might document it better ;-)) johannes

« previous php.internals (#49177) next »