Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18489 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30889 invoked by uid 1010); 27 Aug 2005 08:28:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 30874 invoked from network); 27 Aug 2005 08:28:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Aug 2005 08:28:49 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:52311] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 0A/66-28235-14420134 for ; Sat, 27 Aug 2005 04:28:49 -0400 Received: from [192.168.1.3] (dsl-082-083-227-004.arcor-ip.net [82.83.227.4]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 6744935C392; Sat, 27 Aug 2005 10:49:40 +0200 (CEST) Date: Sat, 27 Aug 2005 10:26:57 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <359474169.20050827102657@marcus-boerger.de> To: Andi Gutmans Cc: Edin Kadribasic , Derick Rethans , Christian Schneider , PHP Developers Mailing List In-Reply-To: <6.2.3.4.2.20050826164414.049f92b0@localhost> References: <430DBD80.6090804@cschneid.com> <430DC0DC.4060506@emini.dk> <6.2.3.4.2.20050825182507.064da170@localhost> <273979752.20050826203230@marcus-boerger.de> <6.2.3.4.2.20050826154443.0470f940@localhost> <509437273.20050827012733@marcus-boerger.de> <6.2.3.4.2.20050826164414.049f92b0@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Property Overloading RFC From: helly@php.net (Marcus Boerger) Hello Andi, Saturday, August 27, 2005, 1:45:43 AM, you wrote: > At 04:27 PM 8/26/2005, Marcus Boerger wrote: >>Hello Andi, >> >>Saturday, August 27, 2005, 12:52:38 AM, you wrote: >> >> > At 11:32 AM 8/26/2005, Marcus Boerger wrote: >> >> > I don't see why the __get/__set/__isset/__unset methods themselves >> >> > can't check if the property exists and throw an exception if it >> >> > doesn't. I always do that in all my examples... >> >> >> >>Interesting, How do you do that? There is no __isset or __unset. >> >> > Did you check HEAD? >> >>When did this get sneaked in and why? And why didn't we make it like >>ArrayAccess with interfaces? And was this even being discussed and i >>was sleeping? >> >>I see dmitry did it: >>$ cvs log -r1.288 Zend/zend.h >>date: 2005/07/07 16:07:08; author: dmitry; state: Exp; lines: +5 -1 >>Fixed bug #33512 (Add missing support for isset()/unset() >>overloading to complement the property get/set methods) > I asked Dmitry to fix this as it seemed kind of buggy to me (bug > #33512). Thought everyone saw it. > It's not in an interface because __get/__set were introduced before > interfaces existed.... Ah yes, makes quite sense then and we're consistent for properties and array acccess though we don't use the same technology for them. Best regards, Marcus