Lines Matching refs:cur
196 phpdbg_watch_collision *cur; in phpdbg_add_watch_collision() local
201 if ((cur = zend_hash_index_find_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->addr.ref))) { in phpdbg_add_watch_collision()
204 …if ((old = zend_hash_find_ptr(&cur->watches, watch->str)) || (old = zend_hash_find_ptr(&cur->impli… in phpdbg_add_watch_collision()
212 if (!(watch->flags & PHPDBG_WATCH_RECURSIVE) && !--cur->refs) { in phpdbg_add_watch_collision()
217 zend_hash_del(&cur->watches, watch->str); in phpdbg_add_watch_collision()
218 if (zend_hash_num_elements(&cur->watches) > 0) { in phpdbg_add_watch_collision()
219 cur->watch = Z_PTR_P(zend_hash_get_current_data_ex(&cur->watches, NULL)); in phpdbg_add_watch_collision()
221 cur->watch = Z_PTR_P(zend_hash_get_current_data_ex(&cur->implicit_watches, NULL)); in phpdbg_add_watch_collision()
225 zend_hash_del(&cur->implicit_watches, watch->str); in phpdbg_add_watch_collision()
234 if (!(flags & PHPDBG_WATCH_RECURSIVE) && !cur->refs++) { in phpdbg_add_watch_collision()
244 …cur = zend_hash_index_add_mem(&PHPDBG_G(watch_collisions), (zend_ulong) watch->addr.ref, &coll, si… in phpdbg_add_watch_collision()
245 phpdbg_store_watchpoint(cur->watch); in phpdbg_add_watch_collision()
246 phpdbg_activate_watchpoint(cur->watch); in phpdbg_add_watch_collision()
253 cur->watch = watch; 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()
262 phpdbg_watch_collision *cur; in phpdbg_remove_watch_collision() local
263 …if ((cur = zend_hash_index_find_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) Z_COUNTED_P(watch->a… in phpdbg_remove_watch_collision()
264 if (cur->refs && !--cur->refs) { in phpdbg_remove_watch_collision()
268 zend_hash_del(&cur->watches, watch->str); in phpdbg_remove_watch_collision()
269 zend_hash_del(&cur->implicit_watches, watch->str); in phpdbg_remove_watch_collision()
271 if (zend_hash_num_elements(&cur->watches) > 0) { in phpdbg_remove_watch_collision()
272 cur->watch = Z_PTR_P(zend_hash_get_current_data_ex(&cur->watches, NULL)); in phpdbg_remove_watch_collision()
273 } else if (zend_hash_num_elements(&cur->implicit_watches) > 0) { in phpdbg_remove_watch_collision()
274 cur->watch = Z_PTR_P(zend_hash_get_current_data_ex(&cur->implicit_watches, NULL)); in phpdbg_remove_watch_collision()
276 phpdbg_deactivate_watchpoint(cur->watch); in phpdbg_remove_watch_collision()
277 phpdbg_remove_watchpoint(cur->watch); in phpdbg_remove_watch_collision()