Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17714 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24430 invoked by uid 1010); 9 Aug 2005 18:55:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 24415 invoked from network); 9 Aug 2005 18:55:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Aug 2005 18:55:42 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:51941] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id AF/39-04646-D2CF8F24 for ; Tue, 09 Aug 2005 14:55:41 -0400 Received: from [192.168.1.3] (dsl-082-083-244-228.arcor-ip.net [82.83.244.228]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 9469F35C37B; Tue, 9 Aug 2005 21:14:43 +0200 (CEST) Date: Tue, 9 Aug 2005 20:55:42 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <937135535.20050809205542@marcus-boerger.de> To: Andi Gutmans , Michael Wallner Cc: internals@lists.php.net In-Reply-To: <77.16.04646.4DF98F24@pb1.pair.com> References: <34.85.04646.D7C98F24@pb1.pair.com> <77.16.04646.4DF98F24@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: RFC: internal class' static properties From: helly@php.net (Marcus Boerger) Hello Michael, Tuesday, August 9, 2005, 2:19:25 PM, you wrote: > I wrote: >> 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 > Let me change that part... :) > There's no need for any "hooks" as there's already > RINIT() and RSHUTDOWN(), so I guess all I'm proposing > is not handling static properties of internal classes > persitently. class consts should be easy and we two times had a patch for that. And i definitively ask to support that since otherwise we flood our namespace, see pdo, spl and the amount of defines there. With a peep to pecl i see tons of more consts (especially in http). regarding static props the solution is to define another hash table in the class_entry that holdes the initial values for the static variables. During minit these would be copied to the used hash table, done. But even though the solution is pretty easy i do not know if we really want to support that. We have default properties and all that stuff already. Can't we simply check if default values for static properties wouldn't do the job and if there is something missing in that? Andi? Best regards, Marcus