mirror of
https://github.com/php/php-src.git
synced 2026-04-01 13:12:16 +02:00
Merge branch 'master' of https://github.com/krakjoe/phpdbg
This commit is contained in:
@@ -92,7 +92,7 @@ void phpdbg_set_breakpoint_symbol(const char *name TSRMLS_DC) /* {{{ */
|
||||
|
||||
PHPDBG_G(flags) |= PHPDBG_HAS_SYM_BP;
|
||||
|
||||
new_break.symbol = estrndup(name, name_len + 1);
|
||||
new_break.symbol = estrndup(name, name_len);
|
||||
new_break.id = PHPDBG_G(bp_count)++;
|
||||
|
||||
zend_hash_update(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], new_break.symbol,
|
||||
@@ -110,7 +110,7 @@ void phpdbg_set_breakpoint_method(const char* class_name, const char* func_name
|
||||
HashTable class_breaks, *class_table;
|
||||
size_t class_len = strlen(class_name);
|
||||
size_t func_len = strlen(func_name);
|
||||
|
||||
|
||||
if (zend_hash_find(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], class_name,
|
||||
class_len, (void**)&class_table) != SUCCESS) {
|
||||
zend_hash_init(&class_breaks, 8, NULL, phpdbg_class_breaks_dtor, 0);
|
||||
|
||||
Reference in New Issue
Block a user