Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49178 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98029 invoked from network); 29 Jul 2010 22:33:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jul 2010 22:33:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:32856] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DE/75-03376-AC1025C4 for ; Thu, 29 Jul 2010 18:33:47 -0400 Received: by fxm17 with SMTP id 17so683830fxm.29 for ; Thu, 29 Jul 2010 15:33:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=6ZCVK4jMpZtmFW9pUkqqlB6ZQLG73o39AZXXKcp7f8k=; b=rXQYVCwbN96qiHXtgyBs3jttglOhyQ+AU5sCJVXbusCl7zhJCKLmc/cLtbvosDhpTV 0E3ci4uCuapPnRNPSSttQB/BND0nkSahG+8K/L0oxIGZbMS8UlatvCK7nZXqzjeG+P5d fPTej7GuFclPorZqRUV8LzS9+tgdVoJKcbhJE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=wAWx4b4HET2Bpyfeq8PpMsM5ZxUb1xE7037W1RDzv688l7ASN3mGoLdxBSNs4Ic3YZ Zk3MNFbrOnJMzuDjnlqRi9jggyEFwz//TUxBEA0j1ue3XIRuVK2Y+Hv852Sj/UOHJIyr Y83HN8X7Z7hwOHPGtnGo7NTLtTRlgNMHWCLQM= MIME-Version: 1.0 Received: by 10.239.135.2 with SMTP id b2mr71709hbb.21.1280442823259; Thu, 29 Jul 2010 15:33:43 -0700 (PDT) Sender: tyra3l@gmail.com Received: by 10.239.161.200 with HTTP; Thu, 29 Jul 2010 15:33:43 -0700 (PDT) In-Reply-To: <1280440681.10693.5.camel@guybrush> References: <1280440681.10693.5.camel@guybrush> Date: Fri, 30 Jul 2010 00:33:43 +0200 X-Google-Sender-Auth: G9Dn_uUEqgNGRenVV_UqBK9Oslg Message-ID: To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] --enable-zend-multibyte From: info@tyrael.hu (Ferenc Kovacs) 2010/7/29 Johannes Schl=C3=BCter : > 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=3D22108 > > 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 > > Do you think that this is a common scenario? Apart from a case, when I had to create utf-8 csv files for Microsoft Excel, I never needed to send BOM from php, and for that particular case, I sent it with an explicit echo, not with an "invisible" control sequence in my code. Tyrael Tyrael Tyrael