Lines Matching refs:coll

298 	watch->coll = NULL;
340 phpdbg_watch_collision *coll; local
341 if ((coll = zend_hash_index_find_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref))) {
342 zend_hash_index_del(&coll->parents, (zend_ulong) watch);
343 if (zend_hash_num_elements(&coll->parents) == 0) {
344 phpdbg_deactivate_watchpoint(&coll->ref);
345 phpdbg_remove_watchpoint_btree(&coll->ref);
347 if (coll->ref.type == WATCH_ON_ZVAL) {
348 phpdbg_delete_watch_collision(&coll->ref);
349 } else if (coll->reference.addr.ptr) {
350 phpdbg_deactivate_watchpoint(&coll->reference);
351 phpdbg_remove_watchpoint_btree(&coll->reference);
352 phpdbg_delete_watch_collision(&coll->reference);
353 if (coll->reference.type == WATCH_ON_STR) {
354 zend_string_release(coll->reference.backup.str);
359 zend_hash_destroy(&coll->parents);
360 efree(coll);
366 phpdbg_watch_collision *coll; local
380 if (!(coll = zend_hash_index_find_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref))) {
381 coll = emalloc(sizeof(*coll));
382 coll->ref.type = WATCH_ON_REFCOUNTED;
383 phpdbg_set_addr_watchpoint(Z_COUNTED_P(watch->addr.zv), sizeof(uint32_t), &coll->ref);
384 coll->ref.coll = coll;
385 phpdbg_store_watchpoint_btree(&coll->ref);
386 phpdbg_activate_watchpoint(&coll->ref);
387 phpdbg_watch_backup_data(&coll->ref);
390 phpdbg_set_zval_watchpoint(Z_REFVAL_P(watch->addr.zv), &coll->reference);
391 coll->reference.coll = coll;
392 phpdbg_update_watch_ref(&coll->reference);
393 phpdbg_store_watchpoint_btree(&coll->reference);
394 phpdbg_activate_watchpoint(&coll->reference);
395 phpdbg_watch_backup_data(&coll->reference);
397 coll->reference.type = WATCH_ON_STR;
398 …nd_string, val) - XtOffsetOf(zend_string, len) + Z_STRLEN_P(watch->addr.zv) + 1, &coll->reference);
399 coll->reference.coll = coll;
400 phpdbg_store_watchpoint_btree(&coll->reference);
401 phpdbg_activate_watchpoint(&coll->reference);
402 coll->reference.backup.str = NULL;
403 phpdbg_watch_backup_data(&coll->reference);
405 coll->reference.addr.ptr = NULL;
408 zend_hash_init(&coll->parents, 8, shitty stupid parameter, NULL, 0);
409 zend_hash_index_add_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref, coll);
411 zend_hash_index_add_ptr(&coll->parents, (zend_long) watch, watch);
423 if (!(coll = zend_hash_index_find_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref))) {
424 coll = emalloc(sizeof(*coll));
425 phpdbg_set_zval_watchpoint(Z_INDIRECT_P(watch->addr.zv), &coll->ref);
426 coll->ref.coll = coll;
427 phpdbg_update_watch_ref(&coll->ref);
428 phpdbg_store_watchpoint_btree(&coll->ref);
429 phpdbg_activate_watchpoint(&coll->ref);
430 phpdbg_watch_backup_data(&coll->ref);
432 zend_hash_init(&coll->parents, 8, shitty stupid parameter, NULL, 0);
433 zend_hash_index_add_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref, coll);
435 zend_hash_index_add_ptr(&coll->parents, (zend_long) watch, watch);
885 ZEND_HASH_FOREACH_PTR(&watch->coll->parents, parent) {
886 if (parent->coll) {
903 if (watch->coll) {
931 if (watch->coll) {
932 ZEND_HASH_FOREACH_PTR(&watch->coll->parents, parent) {