Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49177 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92777 invoked from network); 29 Jul 2010 21:58:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jul 2010 21:58:30 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 unknown Solaris 10 (beta) Received: from [217.114.211.66] ([217.114.211.66:36497] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/94-03376-979F15C4 for ; Thu, 29 Jul 2010 17:58:18 -0400 Received: from [192.168.1.31] (ppp-93-104-49-36.dynamic.mnet-online.de [93.104.49.36]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id 8E3E944C10; Thu, 29 Jul 2010 23:58:14 +0200 (CEST) To: Ferenc Kovacs Cc: PHP Internals In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Thu, 29 Jul 2010 23:58:01 +0200 Message-ID: <1280440681.10693.5.camel@guybrush> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] --enable-zend-multibyte From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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