Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
php-src/sapi/apache2handler/php_apache.h at master · robertbasic/php-src · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
robertbasic
/
php-src
Public
forked from
php/php-src
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
php-src
/
sapi
/
apache2handler
/
php_apache.h
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
95 lines (80 loc) · 3.08 KB
master
Breadcrumbs
php-src
/
sapi
/
apache2handler
/
php_apache.h
Copy path
Top
File metadata and controls
Code
Blame
95 lines (80 loc) · 3.08 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2015 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Sascha Schumann <sascha@schumann.cx> |
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifndef
PHP_APACHE_H
#define
PHP_APACHE_H
#include
"httpd.h"
#include
"http_config.h"
#include
"http_core.h"
#include
"php.h"
#include
"main/php_streams.h"
/* Declare this so we can get to it from outside the sapi_apache2.c file */
extern
module
AP_MODULE_DECLARE_DATA
php7_module
;
/* A way to specify the location of the php.ini dir in an apache directive */
extern
char
*
apache2_php_ini_path_override
;
/* The server_context used by PHP */
typedef
struct
php_struct
{
int
state
;
request_rec
*
r
;
apr_bucket_brigade
*
brigade
;
/* stat structure of the current file */
#if
defined(
NETWARE
)
&&
defined(
CLIB_STAT_PATCH
)
struct
stat_libc
finfo
;
#else
zend_stat_t
finfo
;
#endif
/* Whether or not we've processed PHP in the output filters yet. */
int
request_processed
;
/* final content type */
char
*
content_type
;
}
php_struct
;
void
*
merge_php_config
(
apr_pool_t
*
p
,
void
*
base_conf
,
void
*
new_conf
);
void
*
create_php_config
(
apr_pool_t
*
p
,
char
*
dummy
);
char
*
get_php_config
(
void
*
conf
,
char
*
name
,
size_t
name_len
);
void
apply_config
(
void
*
);
extern
const
command_rec
php_dir_cmds
[];
void
php_ap2_register_hook
(
apr_pool_t
*
p
);
#define
APR_ARRAY_FOREACH_OPEN
(
arr
,
key
,
val
) \
{ \
apr_table_entry_t *elts; \
int i; \
elts = (apr_table_entry_t *) arr->elts; \
for (i = 0; i < arr->nelts; i++) { \
key = elts[i].key; \
val = elts[i].val;
#define
APR_ARRAY_FOREACH_CLOSE
() }}
typedef
struct
{
zend_bool
engine
;
zend_bool
xbithack
;
zend_bool
last_modified
;
}
php_apache2_info_struct
;
extern
zend_module_entry
apache2_module_entry
;
#ifdef
ZTS
extern
int
php_apache2_info_id
;
#define
AP2
(
v
) ZEND_TSRMG(php_apache2_info_id, php_apache2_info_struct *, v)
ZEND_TSRMLS_CACHE_EXTERN
();
#else
extern
php_apache2_info_struct
php_apache2_info
;
#define
AP2
(
v
) (php_apache2_info.v)
#endif
/* fix for gcc4 visibility patch */
#ifndef
PHP_WIN32
# undef
AP_MODULE_DECLARE_DATA
# define
AP_MODULE_DECLARE_DATA
PHPAPI
#endif
#endif
/* PHP_APACHE_H */
You can’t perform that action at this time.