}
}
-static zval **com_property_get_ptr(zval *object, zval *member TSRMLS_DC)
-{
- zval **prop_ptr;
-
- prop_ptr = emalloc(sizeof(zval **));
- *prop_ptr = com_property_read(object, member, 0 TSRMLS_CC);
- return prop_ptr;
-}
-
static void com_object_set(zval **property, zval *value TSRMLS_DC)
{
/* Not yet implemented in the engine */
com_property_write,
com_read_dimension,
com_write_dimension,
- com_property_get_ptr,
- com_property_get_ptr,
+ NULL,
com_object_get,
com_object_set,
com_property_exists,
memcpy(&dom_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
dom_object_handlers.read_property = dom_read_property;
dom_object_handlers.write_property = dom_write_property;
- dom_object_handlers.get_property_ptr = dom_property_get_ptr;
zend_hash_init(&classes, 0, NULL, NULL, 1);
}
/* }}} */
-/* {{{ sxe_property_get_ptr()
- */
-static zval **
-sxe_property_get_ptr(zval *object, zval *member TSRMLS_DC)
-{
-#if 0
- zval **property_ptr;
- zval *property;
-
- property_ptr = emalloc(sizeof(zval **));
-
- property = sxe_property_read(object, member, 0 TSRMLS_CC);
-
- *property_ptr = property;
-
- return property_ptr;
-#else
- /* necessary voodoo hack */
- struct compounded_zval_ptr {
- zval zv;
- zval *pzv;
- };
-
- zval *property;
-
- property = sxe_property_read(object, member, 0 TSRMLS_CC);
- property = erealloc(property, sizeof(struct compounded_zval_ptr));
-
- ((struct compounded_zval_ptr *)property)->pzv = property;
-
- return &((struct compounded_zval_ptr *)property)->pzv;
-#endif
-}
-/* }}} */
-
/* {{{ sxe_property_exists()
*/
static int
sxe_property_write,
NULL,
NULL,
- sxe_property_get_ptr,
- sxe_property_get_ptr,
+ NULL,
sxe_object_get,
sxe_object_set,
sxe_property_exists,