Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17694 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46017 invoked by uid 1010); 9 Aug 2005 12:07:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 46002 invoked from network); 9 Aug 2005 12:07:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Aug 2005 12:07:25 -0000 X-Host-Fingerprint: 212.183.44.42 M2498P010.adsl.highway.telekom.at Received: from ([212.183.44.42:7018] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 34/85-04646-D7C98F24 for ; Tue, 09 Aug 2005 08:07:25 -0400 Message-ID: <34.85.04646.D7C98F24@pb1.pair.com> To: internals@lists.php.net Date: Tue, 09 Aug 2005 14:04:33 +0200 Organization: IWORKS User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803 [ http://iworks.at ] X-Accept-Language: de-AT, de-DE, de, en, en-GB, en-US MIME-Version: 1.0 X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0878DFFB61EC44C071DB5921" X-Posted-By: 212.183.44.42 Subject: RFC: internal class' static properties From: mike@php.net (Michael Wallner) --------------enig0878DFFB61EC44C071DB5921 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit As already mentioned earlier, there does not seem to be any extension or core code using static properties for internal classes. I'd like to request a change in their behaviour/implementation. Currently static properties of internal classes are allocated persitently which limits their usage and has odd sideaffects. AFAICS they are declared at MINIT and initialized once, also at MINIT. Now, if they become modified (running as a module) they'll "leak" from one request to another. Therefore I'd suggest changing that so that they'll be initialized and destructed for each request, which means that there will need to be some form of hooks, which AFAICS also allows to have streams or arrays (i.e. complex types) as static properties just like in userland. PS: It seems that there's class constant API missing too. Regards, -- Michael - < mike(@)php.net > --------------enig0878DFFB61EC44C071DB5921 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.0 (Cygwin) iD8DBQFC+Jv32pTtEijQyW0RAjyNAJ9cikoQKFeVCQRxPUb9SiaAXGxzfQCcD5dI I5Jth9F8UXDYmfh77AXB8n4= =axSJ -----END PGP SIGNATURE----- --------------enig0878DFFB61EC44C071DB5921--