Lines Matching refs:parent

182 static phpdbg_watchpoint_t *phpdbg_create_refcounted_watchpoint(phpdbg_watchpoint_t *parent, zend_r…  in phpdbg_create_refcounted_watchpoint()  argument
184 watch->flags = parent->flags; in phpdbg_create_refcounted_watchpoint()
185 watch->parent = parent; in phpdbg_create_refcounted_watchpoint()
186 watch->str = parent->str; in phpdbg_create_refcounted_watchpoint()
187 ++GC_REFCOUNT(parent->str); in phpdbg_create_refcounted_watchpoint()
235 phpdbg_create_recursive_zval_watch(watch->parent); in phpdbg_add_watch_collision()
248 phpdbg_create_recursive_zval_watch(watch->parent); in phpdbg_add_watch_collision()
254 zend_hash_add_ptr(&cur->watches, watch->str, watch->parent); in phpdbg_add_watch_collision()
257 zend_hash_add_ptr(&cur->implicit_watches, watch->str, watch->parent); in phpdbg_add_watch_collision()
292 ref->parent = watch; in phpdbg_create_reference_watch()
301 static phpdbg_watchpoint_t *phpdbg_get_refcount_watch(phpdbg_watchpoint_t *parent) { in phpdbg_get_refcount_watch() argument
305 if (parent->type == WATCH_ON_HASHTABLE) { in phpdbg_get_refcount_watch()
306 parent = parent->parent; in phpdbg_get_refcount_watch()
307 if (!parent) { in phpdbg_get_refcount_watch()
312 ZEND_ASSERT(parent->type == WATCH_ON_ZVAL); in phpdbg_get_refcount_watch()
313 ref = Z_COUNTED_P(parent->addr.zv); in phpdbg_get_refcount_watch()
336 if (!watch->parent || watch->parent->type != WATCH_ON_ZVAL || watch->type == WATCH_ON_HASHTABLE) { in phpdbg_create_watchpoint()
366 if (watch->parent && watch->parent->type == WATCH_ON_HASHTABLE) { in phpdbg_create_watchpoint()
367 watch->parent->implicit_ht_count++; in phpdbg_create_watchpoint()
375 …if (watch->parent && watch->parent->type == WATCH_ON_ZVAL && Z_REFCOUNTED_P(watch->parent->addr.zv… in phpdbg_create_watchpoint()
376 …phpdbg_add_watch_collision(phpdbg_create_refcounted_watchpoint(watch, Z_COUNTED_P(watch->parent->a… in phpdbg_create_watchpoint()
419 watch->parent = zv_watch; in phpdbg_create_array_watchpoint()
464 new_watch->parent = watch; in phpdbg_create_recursive_ht_watch()
501 new_watch->parent = watch; in phpdbg_create_recursive_zval_watch()
524 phpdbg_watchpoint_t *parent = watch->parent; in phpdbg_delete_implicit_parents() local
525 if (!parent) { in phpdbg_delete_implicit_parents()
529 ZEND_ASSERT(!(parent->flags & PHPDBG_WATCH_RECURSIVE)); in phpdbg_delete_implicit_parents()
530 ZEND_ASSERT(parent->flags & PHPDBG_WATCH_IMPLICIT); in phpdbg_delete_implicit_parents()
532 if (parent->type == WATCH_ON_HASHTABLE && --parent->implicit_ht_count) { in phpdbg_delete_implicit_parents()
536 parent->flags &= ~PHPDBG_WATCH_IMPLICIT; in phpdbg_delete_implicit_parents()
537 if (!(parent->flags & PHPDBG_WATCH_SIMPLE)) { in phpdbg_delete_implicit_parents()
538 if (parent->type == WATCH_ON_ZVAL && Z_REFCOUNTED_P(watch->addr.zv)) { in phpdbg_delete_implicit_parents()
539 phpdbg_remove_watch_collision(parent); in phpdbg_delete_implicit_parents()
541 zend_hash_del(&PHPDBG_G(watchpoints), parent->str); in phpdbg_delete_implicit_parents()
613 …if (!(watch->flags & PHPDBG_WATCH_NORMAL) || (watch->parent && (watch->parent->flags & PHPDBG_WATC… in phpdbg_delete_watchpoint()
629 …wrapper(char *name, size_t namelen, char *key, size_t keylen, HashTable *parent, zval *zv, int (*c… in phpdbg_watchpoint_parse_wrapper() argument
634 watch->parent_container = parent; in phpdbg_watchpoint_parse_wrapper()
652 PHPDBG_API int phpdbg_watchpoint_parse_input(char *input, size_t len, HashTable *parent, size_t i, … in phpdbg_watchpoint_parse_input() argument
653 …return phpdbg_parse_variable_with_arg(input, len, parent, i, (phpdbg_parse_var_with_arg_func) phpd… in phpdbg_watchpoint_parse_input()
656 …se_step(char *name, size_t namelen, char *key, size_t keylen, HashTable *parent, zval *zv, int (*c… in phpdbg_watchpoint_parse_step() argument
669 watch->parent_container = parent; in phpdbg_watchpoint_parse_step()
670 watch->parent = PHPDBG_G(watch_tmp); in phpdbg_watchpoint_parse_step()
1156 …if (watch->type == WATCH_ON_HASHTABLE || watch->parent == NULL || watch->parent->type != WATCH_ON_…