Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35973 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99610 invoked from network); 5 Mar 2008 14:14:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2008 14:14:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=aharvey@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=aharvey@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 203.16.214.57 as permitted sender) X-PHP-List-Original-Sender: aharvey@php.net X-Host-Fingerprint: 203.16.214.57 ipmail04.adl2.internode.on.net Received: from [203.16.214.57] ([203.16.214.57:1497] helo=ipmail04.adl2.internode.on.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/70-27925-9BAAEC74 for ; Wed, 05 Mar 2008 09:14:19 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAC83zkeWZZbhdGdsb2JhbACBVo8cATCaPw X-IronPort-AV: E=Sophos;i="4.25,450,1199626200"; d="scan'208";a="66702446" Received: from ppp150-101-150-225.lns1.per1.internode.on.net (HELO lawngnome.no-ip.info) ([150.101.150.225]) by ipmail04.adl2.internode.on.net with ESMTP; 06 Mar 2008 00:44:13 +1030 Received: from lawngnome.local (lawngnome.local [192.168.0.4]) by lawngnome.no-ip.info (Horde MIME library) with HTTP; Wed, 05 Mar 2008 23:14:12 +0900 Message-ID: <20080305231412.x55ihfhb0o4cwcss@lawngnome.no-ip.info> Date: Wed, 05 Mar 2008 23:14:12 +0900 To: Stefan Walk Cc: internals@lists.php.net, RQuadling@googlemail.com References: <10845a340803050221p5ca210a4mde18021d28e8e848@mail.gmail.com> <200803051306.16131.et@php.net> In-Reply-To: <200803051306.16131.et@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) Subject: Re: [PHP-DEV] PHP5.3.0-dev and Unicode BOM. From: aharvey@php.net (Adam Harvey) Quoting Stefan Walk : > Additionally, i don't think PHP has ignored the BOM before. Bug #22108 [1] has the gory details. The gist is that this behaves differently depending on whether PHP was configured with --enable-zend-multibyte. With the option, the BOM is parsed, used to detect which UTF encoding is in use, and then discarded. Without the option, it's treated like any other non-PHP content and echoed to stdout. A (very) quick test of the latest PHP 6 snapshot suggests that the current behaviour there is the same as PHP 5 without --enable-zend-multibyte: just output the BOM to stdout without any special handling. It's entirely possible that I've just missed a Unicode-related option there, though. Adam [1] http://bugs.php.net/bug.php?id=22108 -- Adam Harvey PEAR Profile: Blog: