Lines Matching refs:key

262 	zval_ptr_dtor(&generator->key);  in zend_generator_free_storage()
364 ZVAL_COPY_VALUE(gc_buffer++, &generator->key); in zend_generator_get_gc()
722 zval_ptr_dtor(&generator->key); in zend_generator_get_next_delegated_value()
723 if (p->key) { in zend_generator_get_next_delegated_value()
724 ZVAL_STR_COPY(&generator->key, p->key); in zend_generator_get_next_delegated_value()
726 ZVAL_LONG(&generator->key, p->h); in zend_generator_get_next_delegated_value()
758 zval_ptr_dtor(&generator->key); in zend_generator_get_next_delegated_value()
760 iter->funcs->get_current_key(iter, &generator->key); in zend_generator_get_next_delegated_value()
762 ZVAL_UNDEF(&generator->key); in zend_generator_get_next_delegated_value()
766 ZVAL_LONG(&generator->key, iter->index); in zend_generator_get_next_delegated_value()
965 ZEND_METHOD(Generator, key) in ZEND_METHOD() argument
978 if (EXPECTED(generator->execute_data != NULL && Z_TYPE(root->key) != IS_UNDEF)) { in ZEND_METHOD()
979 zval *key = &root->key; in ZEND_METHOD() local
981 ZVAL_COPY_DEREF(return_value, key); in ZEND_METHOD()
1141 static void zend_generator_iterator_get_key(zend_object_iterator *iterator, zval *key) /* {{{ */ in zend_generator_iterator_get_key() argument
1149 if (EXPECTED(Z_TYPE(root->key) != IS_UNDEF)) { in zend_generator_iterator_get_key()
1150 zval *zv = &root->key; in zend_generator_iterator_get_key()
1152 ZVAL_COPY_DEREF(key, zv); in zend_generator_iterator_get_key()
1154 ZVAL_NULL(key); in zend_generator_iterator_get_key()
1229 ZEND_ME(Generator, key, arginfo_generator_void, ZEND_ACC_PUBLIC)