diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c index 4d5e7dd8f81..5755884ef69 100644 --- a/sapi/phpdbg/phpdbg_list.c +++ b/sapi/phpdbg/phpdbg_list.c @@ -313,8 +313,8 @@ zend_op_array *phpdbg_init_compile_file(zend_file_handle *file, int type) { if (file->free_filename) { efree((char *) file->filename); } - file->free_filename = 1; - file->filename = estrdup(filename); + file->free_filename = 0; + file->filename = filename; } }