@@ -350,7 +350,7 @@ void phpdbg_set_addr_watchpoint(void *addr, size_t size, phpdbg_watchpoint_t *wa
350
350
watch -> size = size ;
351
351
watch -> ref = NULL ;
352
352
watch -> coll = NULL ;
353
- zend_hash_init (& watch -> elements , 8 , brml , NULL , 0 );
353
+ zend_hash_init (& watch -> elements , 8 , NULL , NULL , 0 );
354
354
}
355
355
356
356
void phpdbg_set_zval_watchpoint (zval * zv , phpdbg_watchpoint_t * watch ) {
@@ -460,7 +460,7 @@ void phpdbg_update_watch_ref(phpdbg_watchpoint_t *watch) {
460
460
coll -> reference .addr .ptr = NULL ;
461
461
}
462
462
463
- zend_hash_init (& coll -> parents , 8 , shitty stupid parameter , NULL , 0 );
463
+ zend_hash_init (& coll -> parents , 8 , NULL , NULL , 0 );
464
464
zend_hash_index_add_ptr (& PHPDBG_G (watch_collisions ), (zend_ulong ) watch -> ref , coll );
465
465
}
466
466
zend_hash_index_add_ptr (& coll -> parents , (zend_long ) watch , watch );
@@ -484,7 +484,7 @@ void phpdbg_update_watch_ref(phpdbg_watchpoint_t *watch) {
484
484
phpdbg_activate_watchpoint (& coll -> ref );
485
485
phpdbg_watch_backup_data (& coll -> ref );
486
486
487
- zend_hash_init (& coll -> parents , 8 , shitty stupid parameter , NULL , 0 );
487
+ zend_hash_init (& coll -> parents , 8 , NULL , NULL , 0 );
488
488
zend_hash_index_add_ptr (& PHPDBG_G (watch_collisions ), (zend_ulong ) watch -> ref , coll );
489
489
}
490
490
zend_hash_index_add_ptr (& coll -> parents , (zend_long ) watch , watch );
@@ -642,14 +642,13 @@ void phpdbg_recurse_watch_element(phpdbg_watch_element *element) {
642
642
void phpdbg_watch_parent_ht (phpdbg_watch_element * element ) {
643
643
if (element -> watch -> type == WATCH_ON_BUCKET ) {
644
644
phpdbg_btree_result * res ;
645
- HashPosition pos ;
646
645
phpdbg_watch_ht_info * hti ;
647
646
ZEND_ASSERT (element -> parent_container );
648
647
if (!(res = phpdbg_btree_find (& PHPDBG_G (watch_HashTables ), (zend_ulong ) element -> parent_container ))) {
649
648
hti = emalloc (sizeof (* hti ));
650
649
hti -> ht = element -> parent_container ;
651
650
652
- zend_hash_init (& hti -> watches , 0 , grrrrr , ZVAL_PTR_DTOR , 0 );
651
+ zend_hash_init (& hti -> watches , 0 , NULL , ZVAL_PTR_DTOR , 0 );
653
652
phpdbg_btree_insert (& PHPDBG_G (watch_HashTables ), (zend_ulong ) hti -> ht , hti );
654
653
655
654
phpdbg_set_addr_watchpoint (HT_GET_DATA_ADDR (hti -> ht ), HT_HASH_SIZE (hti -> ht -> nTableMask ), & hti -> hash_watch );
@@ -660,11 +659,6 @@ void phpdbg_watch_parent_ht(phpdbg_watch_element *element) {
660
659
hti = (phpdbg_watch_ht_info * ) res -> ptr ;
661
660
}
662
661
663
- zend_hash_internal_pointer_end_ex (hti -> ht , & pos );
664
- hti -> last = hti -> ht -> arData + pos ;
665
- hti -> last_str = hti -> last -> key ;
666
- hti -> last_idx = hti -> last -> h ;
667
-
668
662
zend_hash_add_ptr (& hti -> watches , element -> name_in_parent , element );
669
663
}
670
664
}
0 commit comments