Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59401 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97817 invoked from network); 7 Apr 2012 13:44:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2012 13:44:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=h.reindl@thelounge.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=h.reindl@thelounge.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain thelounge.net designates 91.118.73.15 as permitted sender) X-PHP-List-Original-Sender: h.reindl@thelounge.net X-Host-Fingerprint: 91.118.73.15 mail.thelounge.net Received: from [91.118.73.15] ([91.118.73.15:62034] helo=mail.thelounge.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F0/F1-23111-7C4408F4 for ; Sat, 07 Apr 2012 09:44:40 -0400 Received: from srv-rhsoft.rhsoft.net (openvpn-rh.thelounge.net [10.0.0.241]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.thelounge.net (Postfix) with ESMTPSA id BA8E08F for ; Sat, 7 Apr 2012 15:44:36 +0200 (CEST) Message-ID: <4F8044C4.8050100@thelounge.net> Date: Sat, 07 Apr 2012 15:44:36 +0200 Organization: the lounge interactive design User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: X-Enigmail-Version: 1.4 OpenPGP: id=7F780279; url=http://arrakis.thelounge.net/gpg/h.reindl_thelounge.net.pub.txt Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBC6931125A99CEE89BE6FCA8" Subject: Re: [PHP-DEV] PHP class files without 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. >=20 > 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 (: >=20 > 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 sa= tisfy >> 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 = the >> 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 = mode. >>> >>> * If the CLI sees a .phpc file extension, the parser starts out in PH= P >>> 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 >>> >> >=20 >=20 >=20 --=20 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 --------------enigBC6931125A99CEE89BE6FCA8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+ARMQACgkQhmBjz394AnmmwACcCusfgDr3RGk7DG55tVZTLiNl F2oAnjINq6P5J40VqD8leoGAc/YKT8nu =Vwo+ -----END PGP SIGNATURE----- --------------enigBC6931125A99CEE89BE6FCA8--