Lines Matching refs:newPtr
138 bool phpdbg_check_watch_diff(phpdbg_watchtype type, void *oldPtr, void *newPtr) { in phpdbg_check_watch_diff() argument
141 …if (memcmp(&((Bucket *) oldPtr)->h, &((Bucket *) newPtr)->h, sizeof(Bucket) - sizeof(zval) /* hash… in phpdbg_check_watch_diff()
147 return memcmp(oldPtr, newPtr, sizeof(zend_value) + sizeof(uint32_t) /* value + typeinfo */) != 0; in phpdbg_check_watch_diff()
149 return zend_hash_num_elements(HT_PTR_HT(oldPtr)) != zend_hash_num_elements(HT_PTR_HT(newPtr)); in phpdbg_check_watch_diff()
151 return memcmp(oldPtr, newPtr, sizeof(uint32_t) /* no zend_refcounted metadata info */) != 0; in phpdbg_check_watch_diff()
153 …return memcmp(oldPtr, newPtr, *(size_t *) oldPtr + XtOffsetOf(zend_string, val) - XtOffsetOf(zend_… in phpdbg_check_watch_diff()
160 void phpdbg_print_watch_diff(phpdbg_watchtype type, zend_string *name, void *oldPtr, void *newPtr) { in phpdbg_print_watch_diff() argument
180 while (Z_TYPE_P((zval *) newPtr) == IS_INDIRECT) { in phpdbg_print_watch_diff()
181 newPtr = Z_INDIRECT_P((zval *) newPtr); in phpdbg_print_watch_diff()
184 phpdbg_out("New value%s: ", Z_ISREF_P((zval *) newPtr) ? " (reference)" : ""); in phpdbg_print_watch_diff()
185 zend_print_flat_zval_r((zval *) newPtr); in phpdbg_print_watch_diff()
190 …lementDiff = zend_hash_num_elements(HT_PTR_HT(oldPtr)) - zend_hash_num_elements(HT_PTR_HT(newPtr)); in phpdbg_print_watch_diff()
200 phpdbg_writeln("New refcount: %d", GC_REFCOUNT((zend_refcounted *) newPtr)); in phpdbg_print_watch_diff()
209 …zend_write((char *) newPtr + XtOffsetOf(zend_string, val) - XtOffsetOf(zend_string, len), *(size_t… in phpdbg_print_watch_diff()