Introduce zend_stream_init_filename()

Avoid more ad-hoc initialization of zend_file_handle structures.
This commit is contained in:
Nikita Popov 2019-07-16 16:40:54 +02:00
parent 46faf8f018
commit 49bac9b77b
13 changed files with 29 additions and 88 deletions

View file

@ -694,11 +694,7 @@ zend_first_try {
highlight_file((char *)r->filename, &syntax_highlighter_ini);
} else {
zend_file_handle zfd;
zfd.type = ZEND_HANDLE_FILENAME;
zfd.filename = (char *) r->filename;
zfd.free_filename = 0;
zfd.opened_path = NULL;
zend_stream_init_filename(&zfd, (char *) r->filename);
if (!parent_req) {
php_execute_script(&zfd);