Lines Matching refs:coll
287 watch->coll = NULL;
330 phpdbg_watch_collision *coll; local
331 if ((coll = zend_hash_index_find_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref))) {
332 zend_hash_index_del(&coll->parents, (zend_ulong) watch);
333 if (zend_hash_num_elements(&coll->parents) == 0) {
334 phpdbg_deactivate_watchpoint(&coll->ref);
335 phpdbg_remove_watchpoint_btree(&coll->ref);
337 if (coll->ref.type == WATCH_ON_ZVAL) {
338 phpdbg_delete_watch_collision(&coll->ref);
339 } else if (coll->reference.addr.ptr) {
340 phpdbg_deactivate_watchpoint(&coll->reference);
341 phpdbg_remove_watchpoint_btree(&coll->reference);
342 phpdbg_delete_watch_collision(&coll->reference);
343 if (coll->reference.type == WATCH_ON_STR) {
344 zend_string_release(coll->reference.backup.str);
349 zend_hash_destroy(&coll->parents);
350 efree(coll);
356 phpdbg_watch_collision *coll; local
370 if (!(coll = zend_hash_index_find_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref))) {
371 coll = emalloc(sizeof(*coll));
372 coll->ref.type = WATCH_ON_REFCOUNTED;
373 phpdbg_set_addr_watchpoint(Z_COUNTED_P(watch->addr.zv), sizeof(uint32_t), &coll->ref);
374 coll->ref.coll = coll;
375 phpdbg_store_watchpoint_btree(&coll->ref);
376 phpdbg_activate_watchpoint(&coll->ref);
377 phpdbg_watch_backup_data(&coll->ref);
380 phpdbg_set_zval_watchpoint(Z_REFVAL_P(watch->addr.zv), &coll->reference);
381 coll->reference.coll = coll;
382 phpdbg_update_watch_ref(&coll->reference);
383 phpdbg_store_watchpoint_btree(&coll->reference);
384 phpdbg_activate_watchpoint(&coll->reference);
385 phpdbg_watch_backup_data(&coll->reference);
387 coll->reference.type = WATCH_ON_STR;
388 …nd_string, val) - XtOffsetOf(zend_string, len) + Z_STRLEN_P(watch->addr.zv) + 1, &coll->reference);
389 coll->reference.coll = coll;
390 phpdbg_store_watchpoint_btree(&coll->reference);
391 phpdbg_activate_watchpoint(&coll->reference);
392 coll->reference.backup.str = NULL;
393 phpdbg_watch_backup_data(&coll->reference);
395 coll->reference.addr.ptr = NULL;
398 zend_hash_init(&coll->parents, 8, shitty stupid parameter, NULL, 0);
399 zend_hash_index_add_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref, coll);
401 zend_hash_index_add_ptr(&coll->parents, (zend_long) watch, watch);
413 if (!(coll = zend_hash_index_find_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref))) {
414 coll = emalloc(sizeof(*coll));
415 phpdbg_set_zval_watchpoint(Z_INDIRECT_P(watch->addr.zv), &coll->ref);
416 coll->ref.coll = coll;
417 phpdbg_update_watch_ref(&coll->ref);
418 phpdbg_store_watchpoint_btree(&coll->ref);
419 phpdbg_activate_watchpoint(&coll->ref);
420 phpdbg_watch_backup_data(&coll->ref);
422 zend_hash_init(&coll->parents, 8, shitty stupid parameter, NULL, 0);
423 zend_hash_index_add_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref, coll);
425 zend_hash_index_add_ptr(&coll->parents, (zend_long) watch, watch);
876 ZEND_HASH_FOREACH_PTR(&watch->coll->parents, parent) {
877 if (parent->coll) {
894 if (watch->coll) {
922 if (watch->coll) {
923 ZEND_HASH_FOREACH_PTR(&watch->coll->parents, parent) {