1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00

php: fix crash when loading script with PHP 7.4 (closes #1452)

This commit is contained in:
Sébastien Helleu
2020-02-28 21:28:29 +01:00
parent 3f67cfecc8
commit 91701cbdb4
2 changed files with 3 additions and 4 deletions
+2 -4
View File
@@ -687,11 +687,9 @@ weechat_php_load (const char *filename, const char *code)
php_registered_script = NULL;
php_current_script_filename = filename;
file_handle.filename = filename;
file_handle.free_filename = 0;
memset (&file_handle, 0, sizeof (file_handle));
file_handle.type = ZEND_HANDLE_FILENAME;
file_handle.opened_path = NULL;
file_handle.handle.fp = NULL;
file_handle.filename = filename;
zend_try
{