Re: how declare protected array property at internal class properly

From: Date: Thu, 04 Oct 2007 20:54:09 +0000
Subject: Re: how declare protected array property at internal class properly
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-32635@lists.php.net to get a copy of this message
Denis Gabaidulin wrote: > How can i do subj ? > at constructor: > > zval *prop; > > /* init */ > prop = zend_read_property(Z_OBJCE_P(getThis()), getThis(), "prop", > strlen("prop",), 1 TSRMLS_CC); > > array_init(prop); zval *prop; MAKE_STD_ZVAL(prop); array_init(prop); zend_update_property(Z_OBJCE_P(getThis()), getThis(), ZEND_STRS("prop")-1, prop TSRMLS_CC); zval_ptr_dtor(&prop); IIRC complex types for internal zvals was on some engine todo or--at least--wish list... Regards, -- Michael

« previous php.internals (#32635) next »