Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59402 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99263 invoked from network); 7 Apr 2012 13:48:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2012 13:48:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=dragoonis@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dragoonis@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: dragoonis@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:60813] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D1/42-23111-EA5408F4 for ; Sat, 07 Apr 2012 09:48:31 -0400 Received: by lbbgf7 with SMTP id gf7so1160884lbb.29 for ; Sat, 07 Apr 2012 06:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=DYKwVpDtsSIxPDGBYSjRwspjYdzDaBeX4RLcoI73AeM=; b=hlVSRoyX8zxJijDf24fJ5UtZTZEcd+SDxkX9mKW5fUlmAnybe5T+c6i4fmBM9I2LWV rc7gIQvvzquTkoViJsTNciuuIBkzEUjh+z5wJbFFWxKFGCNHgXPXwH0IEtv+dEXf0u7Y E7iUEqTkcXu+XhfsAu4CQbpgwkwXpOrJRTZdTdZddcFxozsZ3PivyHyhFY9ke8ochlMk Bl3cE6ReElQ9b2j/2hv+pce/Mvk21hd91LsA3qQYqO5NFvbxCSawxHsWaJpbTsqFQEME Vfd+fmUd/rPEjBKYOSmd6Z++gpbIrh4RPyEW1zB2Nn5w3WiPxvg/b1YLZmbAaeKyuflw Jhjw== MIME-Version: 1.0 Received: by 10.152.147.100 with SMTP id tj4mr2260013lab.39.1333806508090; Sat, 07 Apr 2012 06:48:28 -0700 (PDT) Received: by 10.152.115.71 with HTTP; Sat, 7 Apr 2012 06:48:28 -0700 (PDT) In-Reply-To: <4F8044C4.8050100@thelounge.net> References: <4F8044C4.8050100@thelounge.net> Date: Sat, 7 Apr 2012 14:48:28 +0100 Message-ID: To: Reindl Harald Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PHP class files without wrot= e: > you are not making valid points > you are proposing DANGEROUS changes! > > what happens if PHP 5.4.x will follow your wishes > (what never will happen) and your file without > php-version? > > what you also do not realize is that the world is not turning > around your windows machine - in the unix world extensions > are meaningless - the sheabing and execute permissions are > the only things controlling if a zexzfile is executeable > and with which interpreter this happens > > and no the world is not turning around you or even around PHP > this is how unix-systems and shells are working and there > is no place for funny execptions in this world > > > Am 07.04.2012 15:39, schrieb Tom Boutell: >> From the viewpoint of someone writing reusable classes, the need to >> start with > above it is a silly annoyance they don't experience with other tools. >> >> That said, you are making valid points, I'm not convinced myself that >> "file extensions" necessarily should or could be determined in every >> context. But it seems the most viable way of addressing the issue - if >> a viable way even exists. Partly I want to convince myself that this >> either can or can't ever be improved, and move on either way (: >> >> On Sat, Apr 7, 2012 at 9:35 AM, Crocodile wrote: >>> Hello, Tom... >>> >>> Are you seriously that bothered with '>> you serious when talking changing reguire/include behaviour just to sat= isfy >>> your wish? >>> >>> To be also serious, I would mention the possibility of including URLs. = There >>> is no such thing as file name extension in URLs. Thus your idea should = be >>> forgot. Personally, I really think 1st of April is like continuing in t= he >>> internals mailing list... >>> >>> 2012/4/7 Tom Boutell >>>> >>>> Now that the flamewar has died down a little I'd like to try to have a >>>> civil discussion about this idea - *without* my admittedly >>>> inflammatory suggestion to kill >>> >>>> So here is what I am seriously suggesting: >>>> >>>> * The default behavior doesn't change. The parser starts out in HTML m= ode. >>>> >>>> * If the CLI sees a .phpc file extension, the parser starts out in PHP >>>> mode (no opening >>> into HTML mode after that with ?>. >>>> >>>> * If a require/include statement sees a .phpc file extension, the >>>> parser starts out in PHP mode. >>>> >>>> * If mod_php and FPM are able to see the path (I'm honestly not sure >>>> if they can or not), they look for .phpc as their indication to start >>>> out in PHP mode. If that's not possible then new options are defined >>>> to allow Apache to be configured to tell mod_php and/or FPM to do the >>>> right thing based on mime types etc. >>>> >>>> This way .php continues to behave exactly as it does today, and can >>>> interoperate smoothly with code that uses .phpc. .phpc can require >>>> .php and vice versa. They are friends. >>>> >>>> Thoughts? >>>> >>>> -- >>>> Tom Boutell >>>> P'unk Avenue >>>> 215 755 1330 >>>> punkave.com >>>> window.punkave.com >>>> >>>> -- >>>> PHP Internals - PHP Runtime Development Mailing List >>>> To unsubscribe, visit: http://www.php.net/unsub.php >>>> >>> >> >> >> > > -- > > Mit besten Gr=FC=DFen, Reindl Harald > the lounge interactive design GmbH > A-1060 Vienna, Hofm=FChlgasse 17 > CTO / software-development / cms-solutions > p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40 > icq: 154546673, http://www.thelounge.net/ > > http://www.thelounge.net/signature.asc.what.htm >