From d9680272c78453a832ef02f914efa13c2545eb19 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 24 Jul 2019 10:42:19 +0200 Subject: 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. --- sapi/phpdbg/phpdbg_list.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sapi/phpdbg/phpdbg_list.c') 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; } } -- cgit v1.2.1