Lines Matching refs:coll

350 	watch->coll = NULL;
393 phpdbg_watch_collision *coll; local
394 if ((coll = zend_hash_index_find_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref))) {
395 zend_hash_index_del(&coll->parents, (zend_ulong) watch);
396 if (zend_hash_num_elements(&coll->parents) == 0) {
397 phpdbg_remove_watchpoint_btree(&coll->ref);
398 phpdbg_deactivate_watchpoint(&coll->ref);
400 if (coll->ref.type == WATCH_ON_ZVAL) {
401 phpdbg_delete_watch_collision(&coll->ref);
402 } else if (coll->reference.addr.ptr) {
403 phpdbg_remove_watchpoint_btree(&coll->reference);
404 phpdbg_deactivate_watchpoint(&coll->reference);
405 phpdbg_delete_watch_collision(&coll->reference);
406 if (coll->reference.type == WATCH_ON_STR) {
407 zend_string_release(coll->reference.backup.str);
412 zend_hash_destroy(&coll->parents);
413 efree(coll);
419 phpdbg_watch_collision *coll; local
433 if (!(coll = zend_hash_index_find_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref))) {
434 coll = emalloc(sizeof(*coll));
435 coll->ref.type = WATCH_ON_REFCOUNTED;
436 phpdbg_set_addr_watchpoint(Z_COUNTED_P(watch->addr.zv), sizeof(uint32_t), &coll->ref);
437 coll->ref.coll = coll;
438 phpdbg_store_watchpoint_btree(&coll->ref);
439 phpdbg_activate_watchpoint(&coll->ref);
440 phpdbg_watch_backup_data(&coll->ref);
443 phpdbg_set_zval_watchpoint(Z_REFVAL_P(watch->addr.zv), &coll->reference);
444 coll->reference.coll = coll;
445 phpdbg_update_watch_ref(&coll->reference);
446 phpdbg_store_watchpoint_btree(&coll->reference);
447 phpdbg_activate_watchpoint(&coll->reference);
448 phpdbg_watch_backup_data(&coll->reference);
450 coll->reference.type = WATCH_ON_STR;
451 …nd_string, val) - XtOffsetOf(zend_string, len) + Z_STRLEN_P(watch->addr.zv) + 1, &coll->reference);
452 coll->reference.coll = coll;
453 phpdbg_store_watchpoint_btree(&coll->reference);
454 phpdbg_activate_watchpoint(&coll->reference);
455 coll->reference.backup.str = NULL;
456 phpdbg_watch_backup_data(&coll->reference);
458 coll->reference.addr.ptr = NULL;
461 zend_hash_init(&coll->parents, 8, shitty stupid parameter, NULL, 0);
462 zend_hash_index_add_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref, coll);
464 zend_hash_index_add_ptr(&coll->parents, (zend_long) watch, watch);
476 if (!(coll = zend_hash_index_find_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref))) {
477 coll = emalloc(sizeof(*coll));
478 phpdbg_set_zval_watchpoint(Z_INDIRECT_P(watch->addr.zv), &coll->ref);
479 coll->ref.coll = coll;
480 phpdbg_update_watch_ref(&coll->ref);
481 phpdbg_store_watchpoint_btree(&coll->ref);
482 phpdbg_activate_watchpoint(&coll->ref);
483 phpdbg_watch_backup_data(&coll->ref);
485 zend_hash_init(&coll->parents, 8, shitty stupid parameter, NULL, 0);
486 zend_hash_index_add_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref, coll);
488 zend_hash_index_add_ptr(&coll->parents, (zend_long) watch, watch);
941 ZEND_HASH_MAP_FOREACH_PTR(&watch->coll->parents, parent) {
942 if (parent->coll) {
959 if (watch->coll) {
990 if (watch->coll) {
991 ZEND_HASH_MAP_FOREACH_PTR(&watch->coll->parents, parent) {