Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35970 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41140 invoked from network); 5 Mar 2008 10:21:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2008 10:21:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 64.233.170.184 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 64.233.170.184 rn-out-0910.google.com Received: from [64.233.170.184] ([64.233.170.184:62691] helo=rn-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/E3-27925-E147EC74 for ; Wed, 05 Mar 2008 05:21:20 -0500 Received: by rn-out-0910.google.com with SMTP id e5so11889rng.0 for ; Wed, 05 Mar 2008 02:21:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=wLdo8Tc/Iuco1GnSm0VVag4cVHK5FMOhvBPExIFhIvI=; b=JhYAElKtlObT3Vjck6HSddiHEjAov+ae89xbAKbUKo+zk5X/u/A6Byzd+XpeYAuTou/aTK8ZeltX/h0fNAYy9vquAXQM2UDkYSBy5PEJwsQBSgSF+hf8OmyNX6UhTatdSM0qukv8uN26sm6PBZa9dJhdPpJ1cq5tduuE0Pve8po= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=oDmmKndYJEZwN3TfGYUYrXZPbrjPKobKynf9zJpLTAWIPM9kbNQ9cp6VVsFA5zF29pEurDFER3SC/tfFTfrYKP3rNoLf9O94lWOjPAeDYaD+seJiH8155v0evZFBwLqZxrCeSZpBy3oAQhQNaQuhgxAc/69pRyNzkPZn1iu7VB4= Received: by 10.114.94.1 with SMTP id r1mr4058496wab.31.1204712474850; Wed, 05 Mar 2008 02:21:14 -0800 (PST) Received: by 10.114.209.15 with HTTP; Wed, 5 Mar 2008 02:21:14 -0800 (PST) Message-ID: <10845a340803050221p5ca210a4mde18021d28e8e848@mail.gmail.com> Date: Wed, 5 Mar 2008 10:21:14 +0000 Reply-To: RQuadling@GoogleMail.com To: "Internals Mailing List" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: PHP5.3.0-dev and Unicode BOM. From: rquadling@googlemail.com ("Richard Quadling") Hi. I don't know if it is a bug or not. But, having just inherited a load of code which are UTF-8 encoded and all have a BOM marker, all the BOM markers are being sent to the browser. This screws up sessions as output is sent before headers (obviously). The files are english/non english mix, so I'm assuming the BOM needs to be present to indicate the order of the encoding (I'm new to the Unicode stuff, so this is my first real work with anything other than pure english PHP code). Because of this assumption, I think I can't remove the BOM marker. In case it matters, I'm using Win32 PHP5.3.0-dev snapshot built on Mar 4 2008 04:17:22. I only recently upgraded the PHP dev, and as far as I can tell this is a new problem, so I'm thinking prior to the upgrade, it worked OK, i.e. the BOM was dropped by PHP. Thank you. Richard. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"