Skip to content

Commit 8829e37

Browse files
committed
sapi/was: set the "primary_script" flag on the primary script
1 parent 6a75d71 commit 8829e37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sapi/was/was_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ static zend_result was_module_main(struct was_simple *w)
455455

456456
zend_file_handle file_handle;
457457
zend_stream_init_filename(&file_handle, SG(request_info).path_translated);
458+
file_handle.primary_script = true;
458459
php_execute_script(&file_handle);
459460
zend_destroy_file_handle(&file_handle);
460461

0 commit comments

Comments
 (0)