Skip to content

[pull] master from CopernicaMarketingSoftware:master #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions zend/classimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,11 @@ zend_result ClassImpl::getClosure(ZEND_OBJECT_OR_ZVAL object, zend_class_entry *
function->arg_flags[1] = 0;
function->arg_flags[2] = 0;
function->fn_flags = ZEND_ACC_CALL_VIA_HANDLER;
#if PHP_VERSION_ID < 70200
zend_string *zend_empty_string = zend_string_alloc(sizeof("")-1, 1);
ZSTR_VAL(zend_empty_string)[0] = '\0';
ZSTR_LEN(zend_empty_string) = 0;
#endif
function->function_name = zend_empty_string; // should not be null, as this is free'ed by zend when doing exception handling
function->scope = *entry_ptr;
function->prototype = nullptr;
Expand Down