Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8434 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23026 invoked by uid 1010); 8 Mar 2004 09:28:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 22894 invoked from network); 8 Mar 2004 09:27:59 -0000 Received: from unknown (HELO shiva.mind.de) (212.42.230.204) by pb1.pair.com with SMTP; 8 Mar 2004 09:27:59 -0000 Received: from [192.168.1.105] (unknown [80.142.186.172]) by shiva.mind.de (Postfix) with ESMTP id 2A34397E98; Sun, 7 Mar 2004 23:33:27 +0100 (CET) Date: Sun, 7 Mar 2004 23:33:10 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <3129147296.20040307233310@marcus-boerger.de> To: Pierre-Alain Joye Cc: internals@lists.php.net In-Reply-To: <20040306142729.536a6d72@siemenslaptop.localdomain> References: <20040306142729.536a6d72@siemenslaptop.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] get_property_ptr_ptr, current usage and plans From: helly@php.net (Marcus Boerger) Hello Pierre-Alain, Saturday, March 6, 2004, 2:27:29 PM, you wrote: > Hello, > What is the usage of get_property_ptr_ptr by ZE2? > For what I read, it is used by the post/pre increment (++,.= and > friends) and in zend_binary_assign_op_obj_helper. I do not know > where the later is used. > What I would like is to know when I am in a pre/post increment > operator and allow some invalid values. For example, in pecl/date, > date::day must be between 1 and 31 (or 28/29). $date->day = 32; > should not be valid, but "$date->day= 31; $date->day++;" is valid. > The problem is to be sure that I'm in a pre/post context. And then > do some additionals operations. For now I hacked the get/set > property under certain conditions, but that also allows invalid > values set if the current value is the min or max value. > I know we do not want to add some kind of operators support, but I'm > wondering if it is possible and if that will not be broken later (ie > this entry is used for something else). > Any comments, thoughts or ideas? such things should be solved by proxies. Those are actually ze2 objects with with only get/set handlers and which actually work on the original object. -- Best regards, Marcus mailto:helly@php.net