Searched refs:newPtr (Results 1 – 2 of 2) sorted by relevance
/PHP-7.1/ext/gd/libgd/ |
H A D | gd_io_dp.c | 330 void *newPtr; in gdReallocDynamic() local 333 if ((newPtr = gdRealloc(dp->data, required))) { in gdReallocDynamic() 335 dp->data = newPtr; in gdReallocDynamic() 340 newPtr = gdMalloc(required); in gdReallocDynamic() 343 memcpy(newPtr, dp->data, dp->logicalSize); in gdReallocDynamic() 345 dp->data = newPtr; in gdReallocDynamic()
|
/PHP-7.1/sapi/phpdbg/ |
H A D | phpdbg_watch.c | 132 zend_bool phpdbg_check_watch_diff(phpdbg_watchtype type, void *oldPtr, void *newPtr) { in phpdbg_check_watch_diff() argument 139 return memcmp(oldPtr, newPtr, sizeof(zend_value) + sizeof(uint32_t) /* value + typeinfo */) != 0; in phpdbg_check_watch_diff() 141 return zend_hash_num_elements(HT_PTR_HT(oldPtr)) != zend_hash_num_elements(HT_PTR_HT(newPtr)); in phpdbg_check_watch_diff() 143 return memcmp(oldPtr, newPtr, sizeof(uint32_t) /* no zend_refcounted metadata info */) != 0; in phpdbg_check_watch_diff() 152 void phpdbg_print_watch_diff(phpdbg_watchtype type, zend_string *name, void *oldPtr, void *newPtr) { in phpdbg_print_watch_diff() argument 175 while (Z_TYPE_P((zval *) newPtr) == IS_INDIRECT) { in phpdbg_print_watch_diff() 176 newPtr = Z_INDIRECT_P((zval *) newPtr); in phpdbg_print_watch_diff() 179 phpdbg_out("New value%s: ", Z_ISREF_P((zval *) newPtr) ? " (reference)" : ""); in phpdbg_print_watch_diff() 181 zend_print_flat_zval_r((zval *) newPtr); in phpdbg_print_watch_diff() 187 …lementDiff = zend_hash_num_elements(HT_PTR_HT(oldPtr)) - zend_hash_num_elements(HT_PTR_HT(newPtr)); in phpdbg_print_watch_diff() [all …]
|
Completed in 12 milliseconds