Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35361 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45662 invoked by uid 1010); 11 Feb 2008 10:41:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 45647 invoked from network); 11 Feb 2008 10:41:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2008 10:41:25 -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:34044] helo=milch.schokokeks.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/C6-64922-15620B74 for ; Mon, 11 Feb 2008 05:41:23 -0500 Received: from [10.22.2.133] (colt-d53d2146.colt.mediaventures.de [::ffff:213.61.33.70]) (AUTH: PLAIN lars@schokokeks.org, SSL: TLSv1/SSLv3,256bits,CAMELLIA256-SHA) by milch.schokokeks.org with esmtp; Mon, 11 Feb 2008 11:41:19 +0100 id 0000000000020004.0000000047B0264F.000009F5 To: internals Mailing List In-Reply-To: <47AFD90D.4010806@zend.com> References: <1323006624.20080209143940@marcus-boerger.de> <20080210111514.54165ecxih2p5yg4@neo.wg.de> <47AFD90D.4010806@zend.com> Date: Mon, 11 Feb 2008 11:41:18 +0100 Message-ID: <1202726478.3698.5.camel@localhost> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=_milch.schokokeks.org-2549-1202726479-0001-2" X-Mailer: Evolution 2.21.5 Subject: Re: [PHP-DEV] [patch] expose PHP version details as constants From: lars@strojny.net (Lars Strojny) --=_milch.schokokeks.org-2549-1202726479-0001-2 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Stanislav, Am Sonntag, den 10.02.2008, 21:11 -0800 schrieb Stanislav Malyshev: [...] > Actually, just as __FILE__, __LINE__, __CLASS__ etc. dirname(__FILE__)=20 > can be a parser constant. And if somebody produces a good name and a=20 > patch for it, I see no reason to reject it. Does anybody? For the name I would propose __DIR__, same as to __FILE__, __CLASS__, __NAMESPACE__ etc. pp. I tried to do it yesterday, but I need some advice on how to do it. So far I need to add another token and an ST_IN_SCRIPTING entry. Basically the quick hack would be to use zend_get_compiled_filename() in it. I stuck how to extract the dirname. Should I use php_dirname() (which is platform sensitive but this is considered inappropriate from what I heard), should php_dirname() be moved? Or should I introduce another hash table entry for the current dirname? cu, Lars --=_milch.schokokeks.org-2549-1202726479-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.8 (GNU/Linux) iQIcBAABAgAGBQJHsCZIAAoJECQPF+sCY6wHAf4P/0yydHWALQP5A1Bwh/xYHGt4 JezcmDF8fmF6jNEc8tTSzOdV50ilQtn0oYYqbmuF/LSTPB5bXg3e2t5TyNMhemu0 31tPQimw8wnmW8i3zEjUkQkPsC3/KHoGpKeYiyWOJ7H75E+TV//+kCrNCOB2Dr+M Ailg1OL4ggwV/qECARNx6axcPBD/ovzHqUK6rbKXZyn/TCxbyEP9suTfBFOBPqp/ vNHm8r/Jzbcup0cNODeF4xENVdw37Hk7VJTS+LmNiNjxqSK1gtuxe4TFnfKWic3z HlmeihdrsjchKmmLXkLSGIxbP3SVPCs24+lq3GZbtIB1O/FZs0rmUP6ebvRCp1jX EKQ7JpbxiizK8s6pKfOwPJSET1+bf4eQeX4ufxRk3syguT04h8XJj/Ji5jHg1zEo 4ihbxNIh+RbQQTYZ3f2Z2NaISDO12dlfEj8wQkFm5KuufR3lwt+xbF0zKBkbswW8 20t+/BVROejIdl9QE1I6qnsWp91rbnbGUwL+9hH5ys+LSQQBP9+UjYH6OkD2MsMj nlivLy8neBPNoaK7Qqdxl4+9+8SQGbBU1yDPxpvXAO4elwpifhkrjYocT4FYjqq3 kIItMHvsO4dxKpKKMUiR8G4NsJSX1Lv+xEc8+5OGFwEd+NeO3YVrQ7ok7mf31nHP 6zxSvIRdOARXDlGCID86 =chVb -----END PGP SIGNATURE----- --=_milch.schokokeks.org-2549-1202726479-0001-2--