Skip to content

Commit a890b0b

Browse files
committed
Merge branch 'PHP-8.2'
2 parents dcc3255 + bf68d10 commit a890b0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/fopen_wrappers.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle)
353353
size_t length;
354354
bool orig_display_errors;
355355

356+
memset(file_handle, 0, sizeof(zend_file_handle));
357+
356358
path_info = SG(request_info).request_uri;
357359
#if HAVE_PWD_H
358360
if (PG(user_dir) && *PG(user_dir) && path_info && '/' == path_info[0] && '~' == path_info[1]) {

0 commit comments

Comments
 (0)