Skip to content

Commit

Permalink
Ref #76801 remove old file source from file_sources hash in case of f…
Browse files Browse the repository at this point in the history
…ile included more than once
  • Loading branch information
alekitto authored and mbeccati committed Apr 3, 2019
1 parent 56a5d0b commit 4029c0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sapi/phpdbg/phpdbg_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ zend_op_array *phpdbg_compile_file(zend_file_handle *file, int type) {
dataptr = erealloc(dataptr, sizeof(phpdbg_file_source) + sizeof(uint32_t) * line);
dataptr->line[line] = endptr - data.buf;

zend_hash_del(&PHPDBG_G(file_sources), ret->filename);
zend_hash_add_ptr(&PHPDBG_G(file_sources), ret->filename, dataptr);
phpdbg_resolve_pending_file_break(ZSTR_VAL(ret->filename));

Expand Down

0 comments on commit 4029c0b

Please sign in to comment.