Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36287 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72526 invoked from network); 21 Mar 2008 21:11:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Mar 2008 21:11:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:52812] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 04/AE-26785-18424E74 for ; Fri, 21 Mar 2008 16:11:31 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 21 Mar 2008 23:11:54 +0200 Received: from [192.168.16.115] ([192.168.16.115]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 21 Mar 2008 14:11:51 -0700 Message-ID: <47E4247C.3080802@zend.com> Date: Fri, 21 Mar 2008 14:11:24 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Marcus Boerger CC: Pierre Joye , jani.taskinen@iki.fi, PHP Internals References: <47E3F714.60302@zend.com> <883216194.20080321193140@marcus-boerger.de> <47E40848.1060103@zend.com> <47E40C3F.8040601@sci.fi> <47E40E6E.5030103@zend.com> <47E414FD.4040608@zend.com> <47E41B70.5020102@zend.com> <655573127.20080321214139@marcus-boerger.de> <47E41F73.7000300@zend.com> <1025802608.20080321215723@marcus-boerger.de> In-Reply-To: <1025802608.20080321215723@marcus-boerger.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Mar 2008 21:11:51.0091 (UTC) FILETIME=[2E772830:01C88B98] Subject: Re: [PHP-DEV] short_open_tag From: stas@zend.com (Stanislav Malyshev) Hi! > since when can I not verify that my general HTML/XHTML structure is valid? The question is since when PHP code has any XML structure? > This is especially valid in template systems as you mentioned earlier. OK, so you are verifying templates. Great. Obviously, if you use XML templates (with PHP being Web language, this is rather unusual use case, but OK), you are not using short tags, so it's OK. However, for people having HTML templates, it still would be OK to verify them with HTML tools unless you have tools that OK with Because in fact PHP is a tmeplate system for HTML/XHTML after all. So as If it were only template system, we'd all use short tags as all other templates do - take Ruby, Perl::Mason, ASP or JSP, any of those have echo shortcut. None of those are too bothered if it works with XML parser either, as far as I can see. > long as I only do easy stuff and avoid generating tags inside php I get > valid XML source. Wait, so it's not only special case of templates - XML - but special case of special case - only templates generating very special kind of content. So why the whole language syntax should conform this tiny subset of all use cases? I'd think it is much better to do what users obviously need - since everybody does it, including all popular template systems bare none - and support short tags. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com