Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43129 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14547 invoked from network); 20 Feb 2009 20:00:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2009 20:00:32 -0000 Received: from [127.0.0.1] ([127.0.0.1:25722]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 46/73-21389-0EB0F994 for ; Fri, 20 Feb 2009 15:00:32 -0500 X-Host-Fingerprint: 66.153.171.97 rcs.us Received: from [66.153.171.97] ([66.153.171.97:29260] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A9/33-21389-9250F994 for ; Fri, 20 Feb 2009 14:31:53 -0500 Message-ID: To: internals@lists.php.net Date: Fri, 20 Feb 2009 14:31:50 -0500 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 66.153.171.97 Subject: Adding/Updating ZVal Arrays to Object From: mrice@rcs.us ("Matthew C. Rice") Hello everyone, I am building a custom PHP Extension. It is object based, and while the documentation seems to be lacking a little on this aspect in extensions, I haven't let that slow me down. I have used other extensions as examples, and done a great deal of searching around to find everything I have needed until now. I currently have the following http://pastebin.com/m74c98b43 ( the start method ) in my classes __construct ( I actually use PHP_MALIAS to alias __construct to the function ) .. This works perfect. It creates a array in the object, just as I expect it to. I can even print out the number of elements and their values in the debug function by passing $Obj->Property to it The problem I am having is that I can't seem to figure out a way to append values on to the ZVal Array in another PHP_METHOD(). I have tried combinations of zend_hash_find() && zend_hash_update() to no avail. Is there anyone that might be able to point me in the right direction as to how to do this? Matthew C. Rice