-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
ZPP: add F type check for callables that do not free trampolines #12375
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an improvement in my opinion as discussed earlier.
Looks sensible to me if benchmarking has no regressions and if Dmitry finds it ok too.
47eadcf
to
bee31be
Compare
I didn't check this carefully and I see some tests failures, but I like the idea. |
bee31be
to
c59d1c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok in its current form.
May need a short entry in upgrading.internals too?
As refetching it with the new FCC API does get tedious
77007f1
to
928faec
Compare
14056cb
to
c8a2bb2
Compare
@@ -1794,9 +1794,9 @@ ZEND_API ZEND_COLD void zend_argument_value_error(uint32_t arg_num, const char * | |||
Z_PARAM_DOUBLE_EX(dest, is_null, 1, 0) | |||
|
|||
/* old "f" */ | |||
#define Z_PARAM_FUNC_EX(dest_fci, dest_fcc, check_null, deref) \ | |||
#define Z_PARAM_FUNC_EX(dest_fci, dest_fcc, check_null, deref, free_trampoline) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may break third-party extensions.
e.g. pecl/memcached https://github.com/dstogov/php-src/actions/runs/6483064666/job/17603831990
I think it's better to keep Z_PARAM_FUNC_EX
unchanged and add Z_PARAM_FUNC_EX2
.
cc: @iluuu1994 @nielsdos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm on it: #12419
This would simplify the implementation of #12340 by quite a bit.