File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ PHP NEWS
17
17
misleadingly with the wrong return type. (nielsdos)
18
18
. Fix bug GH-10570 (Fixed unknown string hash on property fetch with integer
19
19
constant name). (nielsdos)
20
+ . Fixed php_fopen_primary_script() call resulted on zend_destroy_file_handle()
21
+ freeing dangling pointers on the handle as it was uninitialized. (nielsdos)
20
22
21
23
- Curl:
22
24
. Fixed deprecation warning at compile time. (Max Kellermann)
Original file line number Diff line number Diff line change @@ -353,6 +353,8 @@ PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle)
353
353
size_t length ;
354
354
bool orig_display_errors ;
355
355
356
+ memset (file_handle , 0 , sizeof (zend_file_handle ));
357
+
356
358
path_info = SG (request_info ).request_uri ;
357
359
#if HAVE_PWD_H
358
360
if (PG (user_dir ) && * PG (user_dir ) && path_info && '/' == path_info [0 ] && '~' == path_info [1 ]) {
You can’t perform that action at this time.
0 commit comments