diff options
| author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-05-14 13:31:52 +0200 |
|---|---|---|
| committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-05-14 13:35:12 +0200 |
| commit | 68527a7834eec98dc33af2fe053c31ce64e745c6 (patch) | |
| tree | 5694ae624bddc1515889f85b4db2375de92139b4 /sapi/apache2handler/php_functions_arginfo.h | |
| parent | 161ee110bf6a0abb673cdf7429868be62236207d (diff) | |
| download | php-git-68527a7834eec98dc33af2fe053c31ce64e745c6.tar.gz | |
Add stubs for some SAPIs
For apache2handler, fpm, litespeed, phpdbg, specifically.
Partially implements GH-5295
Diffstat (limited to 'sapi/apache2handler/php_functions_arginfo.h')
| -rw-r--r-- | sapi/apache2handler/php_functions_arginfo.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sapi/apache2handler/php_functions_arginfo.h b/sapi/apache2handler/php_functions_arginfo.h index a99296abb0..739afbbc8b 100644 --- a/sapi/apache2handler/php_functions_arginfo.h +++ b/sapi/apache2handler/php_functions_arginfo.h @@ -35,3 +35,29 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_apache_get_version, 0, 0, MAY_BE ZEND_END_ARG_INFO() #define arginfo_apache_get_modules arginfo_apache_request_headers + + +ZEND_FUNCTION(apache_lookup_uri); +ZEND_FUNCTION(virtual); +ZEND_FUNCTION(apache_request_headers); +ZEND_FUNCTION(apache_response_headers); +ZEND_FUNCTION(apache_note); +ZEND_FUNCTION(apache_setenv); +ZEND_FUNCTION(apache_getenv); +ZEND_FUNCTION(apache_get_version); +ZEND_FUNCTION(apache_get_modules); + + +static const zend_function_entry ext_functions[] = { + ZEND_FE(apache_lookup_uri, arginfo_apache_lookup_uri) + ZEND_FE(virtual, arginfo_virtual) + ZEND_FE(apache_request_headers, arginfo_apache_request_headers) + ZEND_FALIAS(getallheaders, apache_request_headers, arginfo_getallheaders) + ZEND_FE(apache_response_headers, arginfo_apache_response_headers) + ZEND_FE(apache_note, arginfo_apache_note) + ZEND_FE(apache_setenv, arginfo_apache_setenv) + ZEND_FE(apache_getenv, arginfo_apache_getenv) + ZEND_FE(apache_get_version, arginfo_apache_get_version) + ZEND_FE(apache_get_modules, arginfo_apache_get_modules) + ZEND_FE_END +}; |
