Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49179 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99254 invoked from network); 29 Jul 2010 22:36:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jul 2010 22:36:18 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass 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:49046] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A5/C5-03376-162025C4 for ; Thu, 29 Jul 2010 18:36:18 -0400 Received: by fxm17 with SMTP id 17so684525fxm.29 for ; Thu, 29 Jul 2010 15:36:14 -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=VdFuhFH89De8RUthhKztppiDefzIDeHTvqYXiLywpWc=; b=XzBwDLsu8yP+lkL0Vm9cgDGIdlWw6phW7UVqtL4CzoqEWW7U+lR9mnZ4ysu8cGyHKg nbng5m8SUX8A5JPhnpqvSnKkyY0wi381TFkldtrRxPgzUp8vo5prw+kuqAcS9mUmN+3c e/loNMNJQ8sQdHzB5bq9QooSUk+uryrR3awIM= 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=lvjyOpQGmZcXM/ovhofqHt7tznIZ850duHJdaa0viL4bYqPTPFW/ZKWoEZft2vZ9Wv B/9zX42XGkWiJLHVKJx0qokO0WYlBzkxqMMw9pGA34wFTq9TJSSwgezx0UMIEFgtv27h imyvyQiZwB9y6Es4c3WTQDprTBKSm1wybEWKo= MIME-Version: 1.0 Received: by 10.239.162.209 with SMTP id m17mr67426hbd.10.1280442974607; Thu, 29 Jul 2010 15:36:14 -0700 (PDT) Sender: tyra3l@gmail.com Received: by 10.239.161.200 with HTTP; Thu, 29 Jul 2010 15:36:14 -0700 (PDT) In-Reply-To: References: <1280440681.10693.5.camel@guybrush> Date: Fri, 30 Jul 2010 00:36:14 +0200 X-Google-Sender-Auth: E12nttNkmuUp2e1jUHh57bRP1x4 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/30 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 > sorry, that was some crazy signature. :) About your other notes abou the --enable-zend-multibyte : if it changes more than this behavior, then I'm in favor leaving this as is, but discarding the BOM from by default. Tyrael