Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27545 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3051 invoked by uid 1010); 19 Jan 2007 20:23:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3036 invoked from network); 19 Jan 2007 20:23:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2007 20:23:02 -0000 Authentication-Results: pb1.pair.com header.from=pstradomski@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pstradomski@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.92.174 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pstradomski@gmail.com X-Host-Fingerprint: 66.249.92.174 ug-out-1314.google.com Linux 2.4/2.6 Received: from [66.249.92.174] ([66.249.92.174:10190] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/E5-60570-5A821B54 for ; Fri, 19 Jan 2007 15:23:01 -0500 Received: by ug-out-1314.google.com with SMTP id o4so563084uge for ; Fri, 19 Jan 2007 12:22:58 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=hh5hIimea9M97Tu4m/vOd5DoT5tA5muz3wefizPEoq0qhVwUfQ8ZW5hAeJazbWwx75JaCujrrc1Rw+cjuBkCxLi7NTl91DcFw2xTaHY0w+YZl4KwGSGYwa5ws3WTX/MVlxAPgyglkg8Evxs3Sd3vUgP2MPqy4OUapu9YIbZBWpk= Received: by 10.66.244.10 with SMTP id r10mr3596299ugh.1169238178143; Fri, 19 Jan 2007 12:22:58 -0800 (PST) Received: from deimos ( [195.136.196.130]) by mx.google.com with ESMTP id e1sm3062251ugf.2007.01.19.12.22.57; Fri, 19 Jan 2007 12:22:57 -0800 (PST) Reply-To: =?iso-8859-2?q?Pawe=B3_Stradomski?= To: internals@lists.php.net Date: Fri, 19 Jan 2007 21:22:38 +0100 User-Agent: KMail/1.9.5 References: <45B0E1EE.2030102@widescreen.ch> In-Reply-To: <45B0E1EE.2030102@widescreen.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-ID: <200701192122.38663.pstradomski@gmail.com> Subject: Re: [PHP-DEV] PHP Object-Caching and Reference Counting From: pstradomski@gmail.com (=?iso-8859-2?q?Pawe=B3_Stradomski?=) Lars Schultz wrote: > I know that a lot of you may say: Why do need to do that?...and I'd have > to think for 3 days and then write for 4 days and would give up. It > seems like a nice solution to me and if any of you have an idea as to > how I could implement this differently, please feel free to point it out > to me. Perhaps you could use your own reference counting? Keep your "real" objects in private array and instead of returning them ret= urn=20 a simple object which would forward all methods and properties by=20 __get/__set/__call. The constructor would increase your internal refcount b= y=20 one, destructor would decrease it. =2D-=20 Pawe=B3 Stradomski