Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28068 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69826 invoked by uid 1010); 19 Feb 2007 11:23:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 69811 invoked from network); 19 Feb 2007 11:23:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2007 11:23:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=toomuchphp-phpdev@yahoo.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=toomuchphp-phpdev@yahoo.com; sender-id=unknown; domainkeys=good Received-SPF: error (pb1.pair.com: domain yahoo.com from 206.190.49.164 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: toomuchphp-phpdev@yahoo.com X-Host-Fingerprint: 206.190.49.164 web54514.mail.yahoo.com Received: from [206.190.49.164] ([206.190.49.164:42066] helo=web54514.mail.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/42-01477-6B889D54 for ; Mon, 19 Feb 2007 06:23:34 -0500 Received: (qmail 50162 invoked by uid 60001); 19 Feb 2007 11:23:32 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=20RNYOc7V0w5+qMHcLEGkQPNc3AikiFZ9TbmLRZtN5C1kOYxOzrh/z4yxl8GZ/YChNxqAIib1VxN9gtxcPhTSqsfgAL8JxyDy8LHRjhkK+Ea8E/WEQXl2w5r+Cj1IRg9QBXFTvi5SteNtZiFGJWUM8C4yF2F54zQj2jqB5nhhlg=; X-YMail-OSG: iV9To5IVM1k51B7O7GtV7ATJixpuP6WyvQhUUQVMF4AIh96NPEZrgpI8wZo2juFQMBNY.OY_VBC8wKk1aG3raVSgJu_bIvYCXpZLiSI_09sdn4pE0D1O5HrdQuxDb6MDCBt2hFoSXtm_YQ-- Received: from [58.108.238.6] by web54514.mail.yahoo.com via HTTP; Mon, 19 Feb 2007 22:23:32 EST Date: Mon, 19 Feb 2007 22:23:32 +1100 (EST) Reply-To: toomuchphp-phpdev@yahoo.com To: Michael Wallner , internals@lists.php.net In-Reply-To: <51.D0.01477.A9979D54@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <117614.49553.qm@web54514.mail.yahoo.com> Subject: Re: [PHP-DEV] [PROPOSAL] Change (just slightly) read/write_property() and get_property_ptr_ptr() usage From: toomuchphp-phpdev@yahoo.com (Peter Hodge) References: <51.D0.01477.A9979D54@pb1.pair.com> Hello, Does that fix the problem where: $object->theArray[] = (...); is invalid when 'theArray' is implemented using __get()? Whoever fixes that one could get all free drinks at PHP conferences: PHP Hacker: "Hi, I'm the guy who made it so you can add items to an array which is returned through __get()" PHP Fanboy: "Dude that is so awesome, how could I ever repay you!? Can I buy you a beer?" regards, Peter --- Michael Wallner wrote: > Hi, > > I'd like to suggest a change to how the read_property object handler > operates. > > Wouldn't it be reasonable for the engine to use get_property_ptr_ptr() > whenever > it wants to modify a property and get rid of using read_property() for write > access? > > That would make rather simple ops like concatenation, in-/decrementation etc > work again with overloaded internal classes. Just make the engine use > read_property() followed by a write_property() when there's no > get_property_ptr_ptr(). > > Punish me if I'm really that far off. > > Thoughts? > -- > Michael > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Send instant messages to your online friends http://au.messenger.yahoo.com