Lines Matching refs:caching
1424 intern->u.caching.flags |= flags & CIT_PUBLIC; in spl_dual_it_construct()
1425 MAKE_STD_ZVAL(intern->u.caching.zcache); in spl_dual_it_construct()
1426 array_init(intern->u.caching.zcache); in spl_dual_it_construct()
1580 if (intern->u.caching.zstr) { in spl_dual_it_free()
1581 zval_ptr_dtor(&intern->u.caching.zstr); in spl_dual_it_free()
1582 intern->u.caching.zstr = NULL; in spl_dual_it_free()
1584 if (intern->u.caching.zchildren) { in spl_dual_it_free()
1585 zval_ptr_dtor(&intern->u.caching.zchildren); in spl_dual_it_free()
1586 intern->u.caching.zchildren = NULL; in spl_dual_it_free()
2157 if (object->u.caching.zcache) { in spl_dual_it_free_storage()
2158 zval_ptr_dtor(&object->u.caching.zcache); in spl_dual_it_free_storage()
2159 object->u.caching.zcache = NULL; in spl_dual_it_free_storage()
2435 return intern->u.caching.flags & CIT_VALID ? SUCCESS : FAILURE; in spl_caching_it_valid()
2446 intern->u.caching.flags |= CIT_VALID; in spl_caching_it_next()
2448 if (intern->u.caching.flags & CIT_FULL_CACHE) { in spl_caching_it_next()
2454 add_index_zval(intern->u.caching.zcache, intern->current.int_key, zcacheval); in spl_caching_it_next()
2456 …zend_symtable_update(HASH_OF(intern->u.caching.zcache), intern->current.str_key, intern->current.s… in spl_caching_it_next()
2467 if (intern->u.caching.flags & CIT_CATCH_GET_CHILD) { in spl_caching_it_next()
2479 if (intern->u.caching.flags & CIT_CATCH_GET_CHILD) { in spl_caching_it_next()
2487 ZVAL_LONG(&zflags, intern->u.caching.flags & CIT_PUBLIC); in spl_caching_it_next()
2488 …spl_instantiate_arg_ex2(spl_ce_RecursiveCachingIterator, &intern->u.caching.zchildren, 1, zchildre… in spl_caching_it_next()
2494 if (intern->u.caching.flags & CIT_CATCH_GET_CHILD) { in spl_caching_it_next()
2502 if (intern->u.caching.flags & (CIT_TOSTRING_USE_INNER|CIT_CALL_TOSTRING)) { in spl_caching_it_next()
2505 ALLOC_ZVAL(intern->u.caching.zstr); in spl_caching_it_next()
2506 if (intern->u.caching.flags & CIT_TOSTRING_USE_INNER) { in spl_caching_it_next()
2507 *intern->u.caching.zstr = *intern->inner.zobject; in spl_caching_it_next()
2509 *intern->u.caching.zstr = *intern->current.data; in spl_caching_it_next()
2511 zend_make_printable_zval(intern->u.caching.zstr, &expr_copy, &use_copy); in spl_caching_it_next()
2513 *intern->u.caching.zstr = expr_copy; in spl_caching_it_next()
2514 INIT_PZVAL(intern->u.caching.zstr); in spl_caching_it_next()
2515 zval_copy_ctor(intern->u.caching.zstr); in spl_caching_it_next()
2518 INIT_PZVAL(intern->u.caching.zstr); in spl_caching_it_next()
2519 zval_copy_ctor(intern->u.caching.zstr); in spl_caching_it_next()
2524 intern->u.caching.flags &= ~CIT_VALID; in spl_caching_it_next()
2531 zend_hash_clean(HASH_OF(intern->u.caching.zcache)); in spl_caching_it_rewind()
2610 …if (!(intern->u.caching.flags & (CIT_CALL_TOSTRING|CIT_TOSTRING_USE_KEY|CIT_TOSTRING_USE_CURRENT|C… in SPL_METHOD()
2614 if (intern->u.caching.flags & CIT_TOSTRING_USE_KEY) { in SPL_METHOD()
2622 } else if (intern->u.caching.flags & CIT_TOSTRING_USE_CURRENT) { in SPL_METHOD()
2627 if (intern->u.caching.zstr) { in SPL_METHOD()
2628 RETURN_STRINGL(Z_STRVAL_P(intern->u.caching.zstr), Z_STRLEN_P(intern->u.caching.zstr), 1); in SPL_METHOD()
2645 if (!(intern->u.caching.flags & CIT_FULL_CACHE)) { in SPL_METHOD()
2655 …zend_symtable_update(HASH_OF(intern->u.caching.zcache), arKey, nKeyLength+1, &value, sizeof(value)… in SPL_METHOD()
2670 if (!(intern->u.caching.flags & CIT_FULL_CACHE)) { in SPL_METHOD()
2679 …if (zend_symtable_find(HASH_OF(intern->u.caching.zcache), arKey, nKeyLength+1, (void**)&value) == … in SPL_METHOD()
2698 if (!(intern->u.caching.flags & CIT_FULL_CACHE)) { in SPL_METHOD()
2707 zend_symtable_del(HASH_OF(intern->u.caching.zcache), arKey, nKeyLength+1); in SPL_METHOD()
2721 if (!(intern->u.caching.flags & CIT_FULL_CACHE)) { in SPL_METHOD()
2730 RETURN_BOOL(zend_symtable_exists(HASH_OF(intern->u.caching.zcache), arKey, nKeyLength+1)); in SPL_METHOD()
2746 if (!(intern->u.caching.flags & CIT_FULL_CACHE)) { in SPL_METHOD()
2751 RETURN_ZVAL(intern->u.caching.zcache, 1, 0); in SPL_METHOD()
2767 RETURN_LONG(intern->u.caching.flags); in SPL_METHOD()
2788 if ((intern->u.caching.flags & CIT_CALL_TOSTRING) != 0 && (flags & CIT_CALL_TOSTRING) == 0) { in SPL_METHOD()
2792 …if ((intern->u.caching.flags & CIT_TOSTRING_USE_INNER) != 0 && (flags & CIT_TOSTRING_USE_INNER) ==… in SPL_METHOD()
2796 if ((flags & CIT_FULL_CACHE) != 0 && (intern->u.caching.flags & CIT_FULL_CACHE) == 0) { in SPL_METHOD()
2798 zend_hash_clean(HASH_OF(intern->u.caching.zcache)); in SPL_METHOD()
2800 intern->u.caching.flags = (intern->u.caching.flags & ~CIT_PUBLIC) | (flags & CIT_PUBLIC); in SPL_METHOD()
2816 if (!(intern->u.caching.flags & CIT_FULL_CACHE)) { in SPL_METHOD()
2821 RETURN_LONG(zend_hash_num_elements(HASH_OF(intern->u.caching.zcache))); in SPL_METHOD()
2883 RETURN_BOOL(intern->u.caching.zchildren); in SPL_METHOD()
2898 if (intern->u.caching.zchildren) { in SPL_METHOD()
2899 RETURN_ZVAL(intern->u.caching.zchildren, 1, 0); in SPL_METHOD()