Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36331 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95232 invoked from network); 22 Mar 2008 18:59:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Mar 2008 18:59:18 -0000 Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.94.56 as permitted sender) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Linux 2.6 Received: from [85.214.94.56] ([85.214.94.56:59592] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 27/E0-16027-40755E74 for ; Sat, 22 Mar 2008 13:59:18 -0500 Received: from MBOERGER-ZRH.corp.google.com (72-216.1-85.cust.bluewin.ch [85.1.216.72]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 6520111F07A; Sat, 22 Mar 2008 19:59:13 +0100 (CET) Date: Sat, 22 Mar 2008 19:58:42 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <195632076.20080322195842@marcus-boerger.de> To: Lars Strojny , Stanislav Malyshev CC: Pierre Joye , Ralph Schindler , Hannes Magnusson , PHP Internals In-Reply-To: <1206189396.10080.33.camel@localhost> References: <47E3F714.60302@zend.com> <47E40848.1060103@zend.com> <7f3ed2c30803211412v299a0c36m86cabb27b26c232@mail.gmail.com> <47E42657.7010408@zend.com> <7f3ed2c30803211420s6cdd06bcy331880346fa68cb@mail.gmail.com> <47E4281C.80706@zend.com> <47E44A1A.2020703@smashlabs.com> <1206187799.10080.26.camel@localhost> <1206189396.10080.33.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] short_open_tag From: helly@php.net (Marcus Boerger) Hello Lars, Stas, you can already do all you want. We do not have to make it more complex at all. Ini setting short_open_tags is defined as PHP_INI_PER_DIR, so all you guys have to do is provide the right configuration, that's all. And if you guys ship your templates then simply remember to ship the configuration in the template dirs as well (.thaccess). In PHP 5.3 you can even do that per dir in php.ini. marcus Saturday, March 22, 2008, 1:36:36 PM, you wrote: > Hi Pierre, > Am Samstag, den 22.03.2008, 13:27 +0100 schrieb Pierre Joye: > [...] >> It seems to be very hard to understand that it is not so simple. If >> this feature is added, every library/module write will have to take >> care of the short tags if they like to work smoothly in any unknown >> configuration at runtime. The check is now done (in many cases) during >> the installation phase and the install script asks the user to disable >> the short tags to install and run the application or library. If >> Zend_View or Solar_View use short tags (even worst if they require >> them), they must be the exceptions in any recent/decent frameworks. > They do not require them, as their "templating" mechanism is as simple > as including a PHP file. So it depends on the runtime settings if this > PHP file can be evaluated properly. >> The problem with this feature is that the setting can be changed at >> runtime, anytime. It is yet another pain a la magic quotes GPC and >> other things like register globals. You said: > Normally, it doesn't matter if short tags are enabled or not. In some > cases it is important to have them disabled (the XML example) and in > some cases it is important to have them enabled (the simple templating > example). So the component which does XML validation can simply disable > it while the templating component enables it. The rest should simply > work with both. >> "the only way to use short tags is to globally enable them." >> >> That's not the case anymore with this patch and that's why we don't >> like it... > I understood that. And that's the reason I like the patch :) > cu, Lars Best regards, Marcus