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
php8 compat #8
php8 compat #8
Conversation
Could this be merged in ? |
Hi, On top of this PR,I needed to replace call_user_function_ex by call_user_function With these modification, I succeed in building and loading the extension.
|
My additional patch:
|
Is there any plan to merge the PR and my patch ? Best regards, |
thanks @hcodina I have included your commit in this PR. our project does not use php8 atm, as debian bullseye decided to stay on php7.4, but I have compiled and tested your commit with php7.3 (debian buster) and php7.4 (debian bullseye) and it's all good. |
if (call_user_function_ex(EG(function_table), object, &callback, &retval, | ||
num_elems, method_args, 0, NULL) == SUCCESS) { | ||
if (call_user_function(EG(function_table), object, &callback, &retval, | ||
num_elems, method_args) == SUCCESS) { |
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.
Does this continue to work with PHP 7.2ish?
This patch fixes compatibility with php8 replacing call_user_function_ex by call_user_function. Signed-off-by: Herve Codina <herve.codina@bootlin.com>
@derickr I have checked php 7.0 and php 7.2 sources, and it looks like usage of call_user_function is correct, and it should work. |
I'm going to close this PR, as it does not address the main PHP 8 issue: the property handlers. |
^ as title says.