Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8402 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78657 invoked by uid 1010); 6 Mar 2004 13:32:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78622 invoked by uid 1007); 6 Mar 2004 13:32:59 -0000 To: internals@lists.php.net Date: Sat, 6 Mar 2004 14:27:29 +0100 Message-ID: <20040306142729.536a6d72@siemenslaptop.localdomain> X-Newsreader: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Posted-By: 80.236.18.23 Subject: get_property_ptr_ptr, current usage and plans From: paj@pearfr.org (Pierre-Alain Joye) 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? pierre