Skip to content

Add stubs for SAPIs #5295

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

Closed
wants to merge 1 commit into from
Closed

Add stubs for SAPIs #5295

wants to merge 1 commit into from

Conversation

kocsismate
Copy link
Member

No description provided.

ZEND_ARG_INFO(0, extension_filename)
ZEND_END_ARG_INFO()
/* }}} */

static const zend_function_entry additional_functions[] = {
Copy link
Member

Choose a reason for hiding this comment

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

Any idea what's up with these two separate function lists in this SAPI?

Copy link
Member Author

Choose a reason for hiding this comment

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

huh, no idea. Although, what I can see is:

  • some other SAPIs also have "additional functions"
  • they all do something like this: cgi_sapi_module.additional_functions = additional_functions;

@nikic
Copy link
Member

nikic commented May 14, 2020

The apache2handler, fpm, litespeed, phpdbg parts here look fine, feel free to merge those already. I'm not entirely happy about the cli/cgi handling, and wondering how we could make this work with generated function entries.

@kocsismate
Copy link
Member Author

kocsismate commented May 14, 2020

Will merge them! I was also thinking about the problem, but I wasn't able to come up with a good idea as far as I remember. :(

php-pulls pushed a commit that referenced this pull request May 14, 2020
For apache2handler, fpm, litespeed, phpdbg, specifically.
Partially implements GH-5295
@nikic
Copy link
Member

nikic commented Jul 10, 2020

I rebased and merged this. It would have been nice to use generated function entries, but it's probably not worth the time to solve this in a better way (like "include" support in stubs).

@kocsismate kocsismate deleted the sapi-stub branch July 10, 2020 13:50
@kocsismate
Copy link
Member Author

@nikic I do agree. Thanks for the merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants