Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32907 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95410 invoked by uid 1010); 22 Oct 2007 08:56:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 95395 invoked from network); 22 Oct 2007 08:56:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Oct 2007 08:56:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=lars@strojny.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=lars@strojny.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain strojny.net designates 85.10.204.248 as permitted sender) X-PHP-List-Original-Sender: lars@strojny.net X-Host-Fingerprint: 85.10.204.248 milch.schokokeks.org Received: from [85.10.204.248] ([85.10.204.248:50965] helo=milch.schokokeks.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/DD-32256-6A56C174 for ; Mon, 22 Oct 2007 04:56:08 -0400 Received: from [192.168.0.5] (xdsl-87-78-216-230.netcologne.de [::ffff:87.78.216.230]) (AUTH: PLAIN lars@schokokeks.org, SSL: TLSv1/SSLv3,256bits,AES256-SHA) by milch.schokokeks.org with esmtp; Sat, 20 Oct 2007 15:39:56 +0200 id 0000000000021170.00000000471A052C.000004E6 To: internals@lists.php.net Date: Sat, 20 Oct 2007 15:39:54 +0200 Message-ID: <1192887594.3854.8.camel@localhost> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=_milch.schokokeks.org-1254-1192887596-0001-2" X-Mailer: Evolution 2.12.0 Subject: T_INTERFACE and T_ABSTRACT as valid class names From: lars@strojny.net (Lars Strojny) --=_milch.schokokeks.org-1254-1192887596-0001-2 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I've already opened a feature request (#43048) but I feel, that there need to be a discussion on that topic. The problem is, that the current pseudo-namespacing used by a huge number of projects (PEAR-style, with underscores and the related file organisation), could not be easily ported to namespaces, as the name "Interface" and "Abstract" is not a valid classname. So something like ... namespace Zend::Db; class Abstract {...} ... will not work. Same for ...=20 namespace Zend::Db::Adapter; interface Interface {...} Nevertheless it would break some syntax highlighting libraries or maybe the tokenizer extension, I would propose to allow at least "Abstract" and "Interface" as a class/interface name. This would make porting to the namespace methodology much easier (I see it quite plainly, a lot of people would develop cripple names like Intrfce or Abstrct just to make the PHP parser happy). cu, Lars --=_milch.schokokeks.org-1254-1192887596-0001-2 Content-Type: application/pgp-signature; name="signature.asc" Content-Transfer-Encoding: 7bit Content-Description: Dies ist ein digital signierter Nachrichtenteil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iQIVAwUARxoFIyQPF+sCY6wHAQL6cxAAgSVGZMlCc0kIUlg2rPh9dNXkxgf2najI 9VBfJ1EUG6LGgRkLngzmlWYgXH70tPr0K6mkXWZTw3akWDOMsW7G1y9qKGXGU8Lu nhTkcOGWhyoMfwdxBOuu+CfO9psztoEdUHkjNfeP9hUUp52H/t8EZTLZYPMNPqi8 nDpknaGH5TAbtNPkZrs871q/kS6lxcVUR8DHCUgf40LRSmAVK1CuqetoR/PW6+Pi u+sE5usyFtIC6UCMKycNWBkhO9oycKQbcZSui6Dz9RnDzYPkkJRrWDv8nGfpla7n C97SPOGYQxXRSiqOvVSnULvoZSk7aOavs2cN8PowFkuhXDDb7TJymbNxlAl7nrwj h3tdXaKQXcU7c2fXBUG5Gs6F5bGexxpGAheAVfkMHQ5maHtSod7mbHLUY7ZUoEpr rrWkJ//XPFeIZGSWkpkQum/u55ycLr0ijM3obmPVR+/R+UD3fQAUo2FWs26fqfgI YIBgNwAySbMbUM4tAsEk24HLJefWA702kSGqnkUpVJb4ys3Rga4TccOVIak+kNwV jsCvo+90TPnFWrFWtIKNfkoBU58vceZIeIcnNaZQ8iBkU8Q+y+aWkKhVcyknw2Ra shGaOBkU+ProjDee3psse64VEUUvXKRq4wk77E1nwWEmpbnlnr6B52UThe+ho/4v qYMvVix159I= =b0Mm -----END PGP SIGNATURE----- --=_milch.schokokeks.org-1254-1192887596-0001-2--