Re: Instance variables
| From: | herrwitten@php.net | Date: | Mon, 04 Jul 2005 03:20:02 +0000 |
| Subject: | Re: Instance variables | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-2533@lists.php.net to get a copy of this message | ||
On Jul 3, 2005, at 10:00 PM, herrwitten@php.net wrote:
The trouble is now to make these protected properties of the class so that subclasses can access them. I have tried using zend_declare_property, but that doesn't allow internal zval's to be arrays, etc.This works: MAKE_STD_ZVAL(intern-
array_init(intern->_delegates); zend_hash_update(intern->zendObject.properties, "_delegates", sizeof("_delegates"), (void*)&intern->_delegates, sizeof(zval*), NULL);_delegates); /* Setup instance variables */