Skip to content

ext/soap: Deprecate passing an int to SoapServer::addFunction() #15310

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
Aug 9, 2024

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Aug 9, 2024

ext/soap/soap.c Outdated
Comment on lines 1208 to 1212
php_error_docref(NULL, E_DEPRECATED, "Passing int is deprecated since 8.4,"
" if all PHP functions need to be provided flatten the array returned by get_defined_functions()");
if (UNEXPECTED(EG(exception))) {
RETURN_THROWS();
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd probably move this into the SOAP_FUNCTIONS_ALL case, because any other value emits an error anyways. Moving this, would allow to rephrase the error message as:

Enabling all functions via SOAP_FUNCTIONS_ALL is deprecated since 8.4, due to possible security concerns. If all PHP functions should be enabled, the flattened return value of get_defined_functions() can be used.

@Girgias Girgias merged commit 42497c1 into php:master Aug 9, 2024
10 of 11 checks passed
@Girgias Girgias deleted the soap-deprecate-all-functions branch August 9, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants