summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_list.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-07-24 10:42:19 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-07-24 10:43:37 +0200
commitd9680272c78453a832ef02f914efa13c2545eb19 (patch)
treee3f98596ef2d1a2345db3f849bc4edba154e3781 /sapi/phpdbg/phpdbg_list.c
parent1eb706179fbbf31b9cedb93509f7451040eb5edc (diff)
downloadphp-git-d9680272c78453a832ef02f914efa13c2545eb19.tar.gz
Revert "Drop free_filename field from zend_file_handle"
This reverts commit e0eca262852dba1a78afcde64a49126c81fead1a. free_filename is used by the wincache extension, restore this field for PHP 7.4.
Diffstat (limited to 'sapi/phpdbg/phpdbg_list.c')
-rw-r--r--sapi/phpdbg/phpdbg_list.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c
index fe612be325..03b4c3526e 100644
--- a/sapi/phpdbg/phpdbg_list.c
+++ b/sapi/phpdbg/phpdbg_list.c
@@ -294,6 +294,10 @@ zend_op_array *phpdbg_init_compile_file(zend_file_handle *file, int type) {
zend_string_release(file->opened_path);
file->opened_path = zend_string_init(filename, strlen(filename), 0);
} else {
+ if (file->free_filename) {
+ efree((char *) file->filename);
+ }
+ file->free_filename = 0;
file->filename = filename;
}
}