Custom object storage

Is there any way to storage (and access) custom variable with my class? For example I need to access the same zendobjectiterator from many places inside my class with %{ closure. Example:


zend_object_iterator *iterator;

zend_class_entry *ce;

ce = Z_OBJCE_P(result);

this->iterator = ce->get_iterator(ce, result, 0 TSRMLS_CC);


I read about custom object storage here: but i don't have any idea how to implement same solution beside zephir.

This is not implemented in Zephir currently