mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Introduce zend_stream_init_filename()
Avoid more ad-hoc initialization of zend_file_handle structures.
This commit is contained in:
parent
46faf8f018
commit
49bac9b77b
13 changed files with 29 additions and 88 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue