Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36573 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68204 invoked from network); 26 Mar 2008 20:40:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Mar 2008 20:40:38 -0000 Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.200.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 209.85.200.170 wf-out-1314.google.com Received: from [209.85.200.170] ([209.85.200.170:41155] helo=wf-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/3E-47041-F84BAE74 for ; Wed, 26 Mar 2008 15:39:43 -0500 Received: by wf-out-1314.google.com with SMTP id 27so3516708wfd.26 for ; Wed, 26 Mar 2008 13:39:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=WP8VYgbWRxo5gN+vCQjIdgMp4xpePk6kootKvJlY8jc=; b=SCIUp0T+EkJQg/CHB8Ul1dFGNQ861wILav5NBxL+m/eG7xPdMjyOnwgkRSFftU9qHnh5i8s6FrsWsZRwXXDP6TmAOZrE+yuCR98759gmnPIH0KtJM7q/me3Fgc9URMLEMrOKPnpxxdW3pODQvBSgljmEcwluO6FDC80mqp8SfQU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hA4xUIAim7ynLR2t8Fm1omgMmFVE5okvRxmnoacs5SyAwxvOJ3aPnw4YlT7zSrCfXLnyTwMCw2k+hmxoGfaBCoY73YR5x4LtdROZ0wbjx8kInw5uJEWPmsv8Cdq23Z06587ncMoe7xpv70aUVZv8O/rdUlbNDUXjR+6t/W675aQ= Received: by 10.142.86.7 with SMTP id j7mr778420wfb.78.1206563980988; Wed, 26 Mar 2008 13:39:40 -0700 (PDT) Received: by 10.115.19.18 with HTTP; Wed, 26 Mar 2008 13:39:40 -0700 (PDT) Message-ID: <7f3ed2c30803261339t7c536da9y36ab0d8b2dffba@mail.gmail.com> Date: Wed, 26 Mar 2008 21:39:40 +0100 To: "Stanislav Malyshev" Cc: "Derick Rethans" , "Marcus Boerger" , "PHP Internals" In-Reply-To: <47EAB12F.3020404@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47E3F714.60302@zend.com> <47E40848.1060103@zend.com> <7f3ed2c30803211412v299a0c36m86cabb27b26c232@mail.gmail.com> <47E42657.7010408@zend.com> <1222637984.20080321222647@marcus-boerger.de> <47E42AB6.7010401@zend.com> <47EAAA45.4000103@zend.com> <7f3ed2c30803261321n7cc60bf2l48c4c5418af2cf73@mail.gmail.com> <47EAB12F.3020404@zend.com> Subject: Re: [PHP-DEV] short_open_tag From: hannes.magnusson@gmail.com ("Hannes Magnusson") On Wed, Mar 26, 2008 at 9:25 PM, Stanislav Malyshev wrote: > I will repeat it as many times as necessary: > 1. This situation can happen only if you have written very buggy > template code - there exists no such code right now and one has to be > rather sloppy to create such code. Use quality libraries :) At least as > template engine. So the template is responsible for ini_set("short_open_tags", false) ? If I include your high quality template library it will do ini_set(.. true) at the top, before parsing the templates, and then ini_set(..false) at the bottom? > 2. This situation is very rare use case for PHP anyway, since most > templates in PHP aren't XML. So what if most templates in PHP aren't XML files? What does that have to do with anything? If I include your template library and then decied to bump out RSS.. your short tags enabling infected my php generated xml file with a parse error - even if I explicitly had put short_open_tags = off in my .htaccess > 3. This situation is very easy to prevent and very easy to recognize if > not prevented. No? Random syntax errors on