Coverage Report

Created: 2026-07-25 06:39

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/php-src/main/php.h
Line
Count
Source
1
/*
2
   +----------------------------------------------------------------------+
3
   | Copyright © The PHP Group and Contributors.                          |
4
   +----------------------------------------------------------------------+
5
   | This source file is subject to the Modified BSD License that is      |
6
   | bundled with this package in the file LICENSE, and is available      |
7
   | through the World Wide Web at <https://www.php.net/license/>.        |
8
   |                                                                      |
9
   | SPDX-License-Identifier: BSD-3-Clause                                |
10
   +----------------------------------------------------------------------+
11
   | Authors: Andi Gutmans <andi@php.net>                                 |
12
   |          Zeev Suraski <zeev@php.net>                                 |
13
   +----------------------------------------------------------------------+
14
 */
15
16
#ifndef PHP_H
17
#define PHP_H
18
19
#ifdef HAVE_DMALLOC
20
#include <dmalloc.h>
21
#endif
22
23
4
#define PHP_API_VERSION 20250926
24
#define YYDEBUG 0
25
0
#define PHP_DEFAULT_CHARSET "UTF-8"
26
27
#include "php_version.h"
28
#include "zend.h"
29
#include "zend_sort.h"
30
#include "php_compat.h"
31
32
#include "zend_API.h"
33
34
#define php_sprintf sprintf
35
36
/* Operating system family definition */
37
#ifdef PHP_WIN32
38
# define PHP_OS_FAMILY      "Windows"
39
#elif defined(BSD) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
40
# define PHP_OS_FAMILY      "BSD"
41
#elif defined(__APPLE__) || defined(__MACH__)
42
# define PHP_OS_FAMILY      "Darwin"
43
#elif defined(__sun__)
44
# define PHP_OS_FAMILY      "Solaris"
45
#elif defined(_AIX)
46
# define PHP_OS_FAMILY      "AIX"
47
#elif defined(__linux__)
48
# define PHP_OS_FAMILY      "Linux"
49
#else
50
# define PHP_OS_FAMILY      "Unknown"
51
#endif
52
53
/* PHP's DEBUG value must match Zend's ZEND_DEBUG value */
54
#undef PHP_DEBUG
55
#define PHP_DEBUG ZEND_DEBUG
56
57
#ifdef PHP_WIN32
58
# include "tsrm_win32.h"
59
# ifdef PHP_EXPORTS
60
#   define PHPAPI __declspec(dllexport)
61
# else
62
#   define PHPAPI __declspec(dllimport)
63
# endif
64
# define PHP_DIR_SEPARATOR '\\'
65
# define PHP_EOL "\r\n"
66
#else
67
# if defined(__GNUC__) && __GNUC__ >= 4
68
#   define PHPAPI __attribute__ ((visibility("default")))
69
# else
70
#   define PHPAPI
71
# endif
72
4.64k
# define PHP_DIR_SEPARATOR '/'
73
0
# define PHP_EOL "\n"
74
#endif
75
76
/* Windows specific defines */
77
#ifdef PHP_WIN32
78
# define PHP_PROG_SENDMAIL    "Built in mailer"
79
# define WIN32_LEAN_AND_MEAN
80
# define NOOPENFILE
81
82
# include <io.h>
83
# include <malloc.h>
84
# include <direct.h>
85
# include <stdlib.h>
86
# include <stdio.h>
87
# include <stdarg.h>
88
# include <sys/types.h>
89
# include <process.h>
90
91
typedef int uid_t;
92
typedef int gid_t;
93
typedef char * caddr_t;
94
typedef int pid_t;
95
96
# define M_TWOPI        (M_PI * 2.0)
97
# define off_t      _off_t
98
99
# define lstat(x, y)  php_sys_lstat(x, y)
100
# define chdir(path)  _chdir(path)
101
# define mkdir(a, b)  _mkdir(a)
102
# define rmdir(a)   _rmdir(a)
103
# define getpid     _getpid
104
# define php_sleep(t) SleepEx(t*1000, TRUE)
105
106
# ifndef getcwd
107
#  define getcwd(a, b)  _getcwd(a, b)
108
# endif
109
#endif
110
111
#include <assert.h>
112
113
#ifdef HAVE_UNIX_H
114
#include <unix.h>
115
#endif
116
117
#ifdef HAVE_ALLOCA_H
118
#include <alloca.h>
119
#endif
120
121
#ifdef HAVE_BUILD_DEFS_H
122
#include <build-defs.h>
123
#endif
124
125
/*
126
 * This is a fast version of strlcpy which should be used, if you
127
 * know the size of the destination buffer and if you know
128
 * the length of the source string.
129
 *
130
 * size is the allocated number of bytes of dst
131
 * src_size is the number of bytes excluding the NUL of src
132
 */
133
134
#define PHP_STRLCPY(dst, src, size, src_size) \
135
51
  {                     \
136
51
    size_t php_str_len;           \
137
51
                        \
138
51
    if (src_size >= size)         \
139
51
      php_str_len = size - 1;       \
140
51
    else                  \
141
51
      php_str_len = src_size;       \
142
51
    memcpy(dst, src, php_str_len);      \
143
51
    dst[php_str_len] = '\0';        \
144
51
  }
145
146
#ifndef HAVE_STRLCPY
147
BEGIN_EXTERN_C()
148
PHPAPI size_t php_strlcpy(char *dst, const char *src, size_t siz);
149
END_EXTERN_C()
150
#undef strlcpy
151
5.87k
#define strlcpy php_strlcpy
152
#define HAVE_STRLCPY 1
153
#define USE_STRLCPY_PHP_IMPL 1
154
#endif
155
156
#ifndef HAVE_STRLCAT
157
BEGIN_EXTERN_C()
158
PHPAPI size_t php_strlcat(char *dst, const char *src, size_t siz);
159
END_EXTERN_C()
160
#undef strlcat
161
48
#define strlcat php_strlcat
162
#define HAVE_STRLCAT 1
163
#define USE_STRLCAT_PHP_IMPL 1
164
#endif
165
166
#ifndef HAVE_EXPLICIT_BZERO
167
BEGIN_EXTERN_C()
168
PHPAPI void php_explicit_bzero(void *dst, size_t siz);
169
END_EXTERN_C()
170
#undef explicit_bzero
171
#define explicit_bzero php_explicit_bzero
172
#endif
173
174
BEGIN_EXTERN_C()
175
PHPAPI int php_safe_bcmp(const zend_string *a, const zend_string *b);
176
END_EXTERN_C()
177
178
#ifndef HAVE_STRTOK_R
179
BEGIN_EXTERN_C()
180
char *strtok_r(char *s, const char *delim, char **last);
181
END_EXTERN_C()
182
#endif
183
184
#ifndef HAVE_SOCKLEN_T
185
# ifdef PHP_WIN32
186
typedef int socklen_t;
187
# else
188
typedef unsigned int socklen_t;
189
# endif
190
#endif
191
192
#define CREATE_MUTEX(a, b)
193
#define SET_MUTEX(a)
194
#define FREE_MUTEX(a)
195
196
#include <stdlib.h>
197
#include <ctype.h>
198
#ifdef HAVE_UNISTD_H
199
#include <unistd.h>
200
#endif
201
202
#include <stdarg.h>
203
204
#include "zend_hash.h"
205
#include "zend_alloc.h"
206
#include "zend_stack.h"
207
#include <string.h>
208
209
#ifdef HAVE_PWD_H
210
# include <pwd.h>
211
# include <sys/param.h>
212
#endif
213
214
#include <limits.h>
215
216
#ifndef INT_MAX
217
#define INT_MAX 2147483647
218
#endif
219
220
#ifndef INT_MIN
221
#define INT_MIN (- INT_MAX - 1)
222
#endif
223
224
#define PHP_DOUBLE_MAX_LENGTH ZEND_DOUBLE_MAX_LENGTH
225
226
#define PHP_GCC_VERSION ZEND_GCC_VERSION
227
#define PHP_ATTRIBUTE_MALLOC ZEND_ATTRIBUTE_MALLOC
228
#define PHP_ATTRIBUTE_FORMAT ZEND_ATTRIBUTE_FORMAT
229
230
BEGIN_EXTERN_C()
231
#include "snprintf.h"
232
END_EXTERN_C()
233
#include "spprintf.h"
234
235
0
#define EXEC_INPUT_BUF 4096
236
237
#define PHP_MIME_TYPE "application/x-httpd-php"
238
239
/* macros */
240
3.21k
#define STR_PRINT(str)  ((str)?(str):"")
241
242
#ifndef MAXPATHLEN
243
# ifdef PHP_WIN32
244
#  include "win32/ioutil.h"
245
#  define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN
246
# elif PATH_MAX
247
#  define MAXPATHLEN PATH_MAX
248
# elif defined(MAX_PATH)
249
#  define MAXPATHLEN MAX_PATH
250
# else
251
#  define MAXPATHLEN 256    /* Should be safe for any weird systems that do not define it */
252
# endif
253
#endif
254
255
0
#define php_ignore_value(x) ZEND_IGNORE_VALUE(x)
256
257
/* global variables */
258
#ifndef PHP_WIN32
259
#define php_sleep sleep
260
extern char **environ;
261
#endif  /* ifndef PHP_WIN32 */
262
263
extern const char php_build_date[];
264
265
#ifdef PHP_PWRITE_64
266
ssize_t pwrite(int, void *, size_t, off64_t);
267
#endif
268
269
#ifdef PHP_PREAD_64
270
ssize_t pread(int, void *, size_t, off64_t);
271
#endif
272
273
BEGIN_EXTERN_C()
274
void phperror(char *error);
275
PHPAPI size_t php_write(void *buf, size_t size);
276
PHPAPI size_t php_printf(const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1, 2);
277
PHPAPI size_t php_printf_unchecked(const char *format, ...);
278
PHPAPI bool php_during_module_startup(void);
279
PHPAPI bool php_during_module_shutdown(void);
280
PHPAPI bool php_get_module_initialized(void);
281
#ifdef HAVE_SYSLOG_H
282
#include "php_syslog.h"
283
#define php_log_err(msg) php_log_err_with_severity(msg, LOG_NOTICE)
284
#else
285
#define php_log_err(msg) php_log_err_with_severity(msg, 5)
286
#endif
287
PHPAPI ZEND_COLD void php_log_err_with_severity(const char *log_message, int syslog_type_int);
288
int Debug(char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1, 2);
289
int cfgparse(void);
290
END_EXTERN_C()
291
292
0
#define php_error zend_error
293
#define error_handling_t zend_error_handling_t
294
295
BEGIN_EXTERN_C()
296
static inline ZEND_ATTRIBUTE_DEPRECATED void php_set_error_handling(error_handling_t error_handling, zend_class_entry *exception_class)
297
0
{
298
0
  zend_replace_error_handling(error_handling, exception_class, NULL);
299
0
}
Unexecuted instantiation: php_date.c:php_set_error_handling
Unexecuted instantiation: php_pcre.c:php_set_error_handling
Unexecuted instantiation: exif.c:php_set_error_handling
Unexecuted instantiation: hash_adler32.c:php_set_error_handling
Unexecuted instantiation: hash_crc32.c:php_set_error_handling
Unexecuted instantiation: hash_fnv.c:php_set_error_handling
Unexecuted instantiation: hash_gost.c:php_set_error_handling
Unexecuted instantiation: hash_haval.c:php_set_error_handling
Unexecuted instantiation: hash_joaat.c:php_set_error_handling
Unexecuted instantiation: hash_md.c:php_set_error_handling
Unexecuted instantiation: hash_murmur.c:php_set_error_handling
Unexecuted instantiation: hash_ripemd.c:php_set_error_handling
Unexecuted instantiation: hash_sha_ni.c:php_set_error_handling
Unexecuted instantiation: hash_sha_sse2.c:php_set_error_handling
Unexecuted instantiation: hash_sha.c:php_set_error_handling
Unexecuted instantiation: hash_sha3.c:php_set_error_handling
Unexecuted instantiation: hash_snefru.c:php_set_error_handling
Unexecuted instantiation: hash_tiger.c:php_set_error_handling
Unexecuted instantiation: hash_whirlpool.c:php_set_error_handling
Unexecuted instantiation: hash_xxhash.c:php_set_error_handling
Unexecuted instantiation: hash.c:php_set_error_handling
Unexecuted instantiation: json_encoder.c:php_set_error_handling
Unexecuted instantiation: json_parser.tab.c:php_set_error_handling
Unexecuted instantiation: json_scanner.c:php_set_error_handling
Unexecuted instantiation: json.c:php_set_error_handling
Unexecuted instantiation: php_lexbor.c:php_set_error_handling
Unexecuted instantiation: zend_accelerator_blacklist.c:php_set_error_handling
Unexecuted instantiation: zend_accelerator_module.c:php_set_error_handling
Unexecuted instantiation: zend_file_cache.c:php_set_error_handling
Unexecuted instantiation: ZendAccelerator.c:php_set_error_handling
Unexecuted instantiation: zend_jit.c:php_set_error_handling
Unexecuted instantiation: csprng.c:php_set_error_handling
Unexecuted instantiation: engine_mt19937.c:php_set_error_handling
Unexecuted instantiation: engine_pcgoneseq128xslrr64.c:php_set_error_handling
Unexecuted instantiation: engine_secure.c:php_set_error_handling
Unexecuted instantiation: engine_user.c:php_set_error_handling
Unexecuted instantiation: engine_xoshiro256starstar.c:php_set_error_handling
Unexecuted instantiation: gammasection.c:php_set_error_handling
Unexecuted instantiation: random.c:php_set_error_handling
Unexecuted instantiation: randomizer.c:php_set_error_handling
Unexecuted instantiation: zend_utils.c:php_set_error_handling
Unexecuted instantiation: php_reflection.c:php_set_error_handling
Unexecuted instantiation: php_spl.c:php_set_error_handling
Unexecuted instantiation: spl_array.c:php_set_error_handling
Unexecuted instantiation: spl_directory.c:php_set_error_handling
Unexecuted instantiation: spl_dllist.c:php_set_error_handling
Unexecuted instantiation: spl_exceptions.c:php_set_error_handling
Unexecuted instantiation: spl_fixedarray.c:php_set_error_handling
Unexecuted instantiation: spl_functions.c:php_set_error_handling
Unexecuted instantiation: spl_heap.c:php_set_error_handling
Unexecuted instantiation: spl_iterators.c:php_set_error_handling
Unexecuted instantiation: spl_observer.c:php_set_error_handling
Unexecuted instantiation: array.c:php_set_error_handling
Unexecuted instantiation: assert.c:php_set_error_handling
Unexecuted instantiation: base64.c:php_set_error_handling
Unexecuted instantiation: basic_functions.c:php_set_error_handling
Unexecuted instantiation: browscap.c:php_set_error_handling
Unexecuted instantiation: crc32_x86.c:php_set_error_handling
Unexecuted instantiation: crc32.c:php_set_error_handling
Unexecuted instantiation: credits.c:php_set_error_handling
Unexecuted instantiation: crypt.c:php_set_error_handling
Unexecuted instantiation: css.c:php_set_error_handling
Unexecuted instantiation: datetime.c:php_set_error_handling
Unexecuted instantiation: dir.c:php_set_error_handling
Unexecuted instantiation: dl.c:php_set_error_handling
Unexecuted instantiation: dns.c:php_set_error_handling
Unexecuted instantiation: exec.c:php_set_error_handling
Unexecuted instantiation: file.c:php_set_error_handling
Unexecuted instantiation: filestat.c:php_set_error_handling
Unexecuted instantiation: filters.c:php_set_error_handling
Unexecuted instantiation: flock_compat.c:php_set_error_handling
Unexecuted instantiation: formatted_print.c:php_set_error_handling
Unexecuted instantiation: fsock.c:php_set_error_handling
Unexecuted instantiation: ftok.c:php_set_error_handling
Unexecuted instantiation: ftp_fopen_wrapper.c:php_set_error_handling
Unexecuted instantiation: head.c:php_set_error_handling
Unexecuted instantiation: hrtime.c:php_set_error_handling
Unexecuted instantiation: html.c:php_set_error_handling
Unexecuted instantiation: http_fopen_wrapper.c:php_set_error_handling
Unexecuted instantiation: http.c:php_set_error_handling
Unexecuted instantiation: image.c:php_set_error_handling
Unexecuted instantiation: incomplete_class.c:php_set_error_handling
Unexecuted instantiation: info.c:php_set_error_handling
Unexecuted instantiation: io_poll.c:php_set_error_handling
Unexecuted instantiation: iptc.c:php_set_error_handling
Unexecuted instantiation: levenshtein.c:php_set_error_handling
Unexecuted instantiation: link.c:php_set_error_handling
Unexecuted instantiation: mail.c:php_set_error_handling
Unexecuted instantiation: math.c:php_set_error_handling
Unexecuted instantiation: md5.c:php_set_error_handling
Unexecuted instantiation: metaphone.c:php_set_error_handling
Unexecuted instantiation: microtime.c:php_set_error_handling
Unexecuted instantiation: net.c:php_set_error_handling
Unexecuted instantiation: pack.c:php_set_error_handling
Unexecuted instantiation: pageinfo.c:php_set_error_handling
Unexecuted instantiation: password.c:php_set_error_handling
Unexecuted instantiation: php_fopen_wrapper.c:php_set_error_handling
Unexecuted instantiation: proc_open.c:php_set_error_handling
Unexecuted instantiation: quot_print.c:php_set_error_handling
Unexecuted instantiation: scanf.c:php_set_error_handling
Unexecuted instantiation: sha1.c:php_set_error_handling
Unexecuted instantiation: soundex.c:php_set_error_handling
Unexecuted instantiation: streamsfuncs.c:php_set_error_handling
Unexecuted instantiation: string.c:php_set_error_handling
Unexecuted instantiation: strnatcmp.c:php_set_error_handling
Unexecuted instantiation: syslog.c:php_set_error_handling
Unexecuted instantiation: type.c:php_set_error_handling
Unexecuted instantiation: uniqid.c:php_set_error_handling
Unexecuted instantiation: url_scanner_ex.c:php_set_error_handling
Unexecuted instantiation: url.c:php_set_error_handling
Unexecuted instantiation: user_filters.c:php_set_error_handling
Unexecuted instantiation: uuencode.c:php_set_error_handling
Unexecuted instantiation: var_unserializer.c:php_set_error_handling
Unexecuted instantiation: var.c:php_set_error_handling
Unexecuted instantiation: versioning.c:php_set_error_handling
Unexecuted instantiation: crypt_sha256.c:php_set_error_handling
Unexecuted instantiation: crypt_sha512.c:php_set_error_handling
Unexecuted instantiation: php_crypt_r.c:php_set_error_handling
Unexecuted instantiation: php_uri.c:php_set_error_handling
Unexecuted instantiation: php_uri_common.c:php_set_error_handling
Unexecuted instantiation: uri_parser_rfc3986.c:php_set_error_handling
Unexecuted instantiation: uri_parser_whatwg.c:php_set_error_handling
Unexecuted instantiation: uri_parser_php_parse_url.c:php_set_error_handling
Unexecuted instantiation: explicit_bzero.c:php_set_error_handling
Unexecuted instantiation: fopen_wrappers.c:php_set_error_handling
Unexecuted instantiation: getopt.c:php_set_error_handling
Unexecuted instantiation: main.c:php_set_error_handling
Unexecuted instantiation: network.c:php_set_error_handling
Unexecuted instantiation: output.c:php_set_error_handling
Unexecuted instantiation: php_content_types.c:php_set_error_handling
Unexecuted instantiation: php_ini_builder.c:php_set_error_handling
Unexecuted instantiation: php_ini.c:php_set_error_handling
Unexecuted instantiation: php_glob.c:php_set_error_handling
Unexecuted instantiation: php_odbc_utils.c:php_set_error_handling
Unexecuted instantiation: php_open_temporary_file.c:php_set_error_handling
Unexecuted instantiation: php_scandir.c:php_set_error_handling
Unexecuted instantiation: php_syslog.c:php_set_error_handling
Unexecuted instantiation: php_ticks.c:php_set_error_handling
Unexecuted instantiation: php_variables.c:php_set_error_handling
Unexecuted instantiation: reentrancy.c:php_set_error_handling
Unexecuted instantiation: rfc1867.c:php_set_error_handling
Unexecuted instantiation: safe_bcmp.c:php_set_error_handling
Unexecuted instantiation: SAPI.c:php_set_error_handling
Unexecuted instantiation: snprintf.c:php_set_error_handling
Unexecuted instantiation: spprintf.c:php_set_error_handling
Unexecuted instantiation: strlcat.c:php_set_error_handling
Unexecuted instantiation: strlcpy.c:php_set_error_handling
Unexecuted instantiation: php_io.c:php_set_error_handling
Unexecuted instantiation: php_io_copy_linux.c:php_set_error_handling
Unexecuted instantiation: poll_backend_epoll.c:php_set_error_handling
Unexecuted instantiation: poll_backend_eventport.c:php_set_error_handling
Unexecuted instantiation: poll_backend_kqueue.c:php_set_error_handling
Unexecuted instantiation: poll_backend_poll.c:php_set_error_handling
Unexecuted instantiation: poll_core.c:php_set_error_handling
Unexecuted instantiation: poll_fd_table.c:php_set_error_handling
Unexecuted instantiation: poll_handle.c:php_set_error_handling
Unexecuted instantiation: cast.c:php_set_error_handling
Unexecuted instantiation: filter.c:php_set_error_handling
Unexecuted instantiation: glob_wrapper.c:php_set_error_handling
Unexecuted instantiation: memory.c:php_set_error_handling
Unexecuted instantiation: mmap.c:php_set_error_handling
Unexecuted instantiation: plain_wrapper.c:php_set_error_handling
Unexecuted instantiation: stream_errors.c:php_set_error_handling
Unexecuted instantiation: streams.c:php_set_error_handling
Unexecuted instantiation: transports.c:php_set_error_handling
Unexecuted instantiation: userspace.c:php_set_error_handling
Unexecuted instantiation: xp_socket.c:php_set_error_handling
Unexecuted instantiation: zend_optimizer.c:php_set_error_handling
Unexecuted instantiation: zend_system_id.c:php_set_error_handling
Unexecuted instantiation: zend.c:php_set_error_handling
Unexecuted instantiation: internal_functions_cli.c:php_set_error_handling
Unexecuted instantiation: fuzzer-parser.c:php_set_error_handling
Unexecuted instantiation: fuzzer-sapi.c:php_set_error_handling
Unexecuted instantiation: fuzzer-tracing-jit.c:php_set_error_handling
Unexecuted instantiation: fuzzer-exif.c:php_set_error_handling
Unexecuted instantiation: fuzzer-unserialize.c:php_set_error_handling
Unexecuted instantiation: fuzzer-function-jit.c:php_set_error_handling
Unexecuted instantiation: fuzzer-json.c:php_set_error_handling
Unexecuted instantiation: fuzzer-unserializehash.c:php_set_error_handling
Unexecuted instantiation: fuzzer-execute.c:php_set_error_handling
300
0
static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling(void) {}
Unexecuted instantiation: php_date.c:php_std_error_handling
Unexecuted instantiation: php_pcre.c:php_std_error_handling
Unexecuted instantiation: exif.c:php_std_error_handling
Unexecuted instantiation: hash_adler32.c:php_std_error_handling
Unexecuted instantiation: hash_crc32.c:php_std_error_handling
Unexecuted instantiation: hash_fnv.c:php_std_error_handling
Unexecuted instantiation: hash_gost.c:php_std_error_handling
Unexecuted instantiation: hash_haval.c:php_std_error_handling
Unexecuted instantiation: hash_joaat.c:php_std_error_handling
Unexecuted instantiation: hash_md.c:php_std_error_handling
Unexecuted instantiation: hash_murmur.c:php_std_error_handling
Unexecuted instantiation: hash_ripemd.c:php_std_error_handling
Unexecuted instantiation: hash_sha_ni.c:php_std_error_handling
Unexecuted instantiation: hash_sha_sse2.c:php_std_error_handling
Unexecuted instantiation: hash_sha.c:php_std_error_handling
Unexecuted instantiation: hash_sha3.c:php_std_error_handling
Unexecuted instantiation: hash_snefru.c:php_std_error_handling
Unexecuted instantiation: hash_tiger.c:php_std_error_handling
Unexecuted instantiation: hash_whirlpool.c:php_std_error_handling
Unexecuted instantiation: hash_xxhash.c:php_std_error_handling
Unexecuted instantiation: hash.c:php_std_error_handling
Unexecuted instantiation: json_encoder.c:php_std_error_handling
Unexecuted instantiation: json_parser.tab.c:php_std_error_handling
Unexecuted instantiation: json_scanner.c:php_std_error_handling
Unexecuted instantiation: json.c:php_std_error_handling
Unexecuted instantiation: php_lexbor.c:php_std_error_handling
Unexecuted instantiation: zend_accelerator_blacklist.c:php_std_error_handling
Unexecuted instantiation: zend_accelerator_module.c:php_std_error_handling
Unexecuted instantiation: zend_file_cache.c:php_std_error_handling
Unexecuted instantiation: ZendAccelerator.c:php_std_error_handling
Unexecuted instantiation: zend_jit.c:php_std_error_handling
Unexecuted instantiation: csprng.c:php_std_error_handling
Unexecuted instantiation: engine_mt19937.c:php_std_error_handling
Unexecuted instantiation: engine_pcgoneseq128xslrr64.c:php_std_error_handling
Unexecuted instantiation: engine_secure.c:php_std_error_handling
Unexecuted instantiation: engine_user.c:php_std_error_handling
Unexecuted instantiation: engine_xoshiro256starstar.c:php_std_error_handling
Unexecuted instantiation: gammasection.c:php_std_error_handling
Unexecuted instantiation: random.c:php_std_error_handling
Unexecuted instantiation: randomizer.c:php_std_error_handling
Unexecuted instantiation: zend_utils.c:php_std_error_handling
Unexecuted instantiation: php_reflection.c:php_std_error_handling
Unexecuted instantiation: php_spl.c:php_std_error_handling
Unexecuted instantiation: spl_array.c:php_std_error_handling
Unexecuted instantiation: spl_directory.c:php_std_error_handling
Unexecuted instantiation: spl_dllist.c:php_std_error_handling
Unexecuted instantiation: spl_exceptions.c:php_std_error_handling
Unexecuted instantiation: spl_fixedarray.c:php_std_error_handling
Unexecuted instantiation: spl_functions.c:php_std_error_handling
Unexecuted instantiation: spl_heap.c:php_std_error_handling
Unexecuted instantiation: spl_iterators.c:php_std_error_handling
Unexecuted instantiation: spl_observer.c:php_std_error_handling
Unexecuted instantiation: array.c:php_std_error_handling
Unexecuted instantiation: assert.c:php_std_error_handling
Unexecuted instantiation: base64.c:php_std_error_handling
Unexecuted instantiation: basic_functions.c:php_std_error_handling
Unexecuted instantiation: browscap.c:php_std_error_handling
Unexecuted instantiation: crc32_x86.c:php_std_error_handling
Unexecuted instantiation: crc32.c:php_std_error_handling
Unexecuted instantiation: credits.c:php_std_error_handling
Unexecuted instantiation: crypt.c:php_std_error_handling
Unexecuted instantiation: css.c:php_std_error_handling
Unexecuted instantiation: datetime.c:php_std_error_handling
Unexecuted instantiation: dir.c:php_std_error_handling
Unexecuted instantiation: dl.c:php_std_error_handling
Unexecuted instantiation: dns.c:php_std_error_handling
Unexecuted instantiation: exec.c:php_std_error_handling
Unexecuted instantiation: file.c:php_std_error_handling
Unexecuted instantiation: filestat.c:php_std_error_handling
Unexecuted instantiation: filters.c:php_std_error_handling
Unexecuted instantiation: flock_compat.c:php_std_error_handling
Unexecuted instantiation: formatted_print.c:php_std_error_handling
Unexecuted instantiation: fsock.c:php_std_error_handling
Unexecuted instantiation: ftok.c:php_std_error_handling
Unexecuted instantiation: ftp_fopen_wrapper.c:php_std_error_handling
Unexecuted instantiation: head.c:php_std_error_handling
Unexecuted instantiation: hrtime.c:php_std_error_handling
Unexecuted instantiation: html.c:php_std_error_handling
Unexecuted instantiation: http_fopen_wrapper.c:php_std_error_handling
Unexecuted instantiation: http.c:php_std_error_handling
Unexecuted instantiation: image.c:php_std_error_handling
Unexecuted instantiation: incomplete_class.c:php_std_error_handling
Unexecuted instantiation: info.c:php_std_error_handling
Unexecuted instantiation: io_poll.c:php_std_error_handling
Unexecuted instantiation: iptc.c:php_std_error_handling
Unexecuted instantiation: levenshtein.c:php_std_error_handling
Unexecuted instantiation: link.c:php_std_error_handling
Unexecuted instantiation: mail.c:php_std_error_handling
Unexecuted instantiation: math.c:php_std_error_handling
Unexecuted instantiation: md5.c:php_std_error_handling
Unexecuted instantiation: metaphone.c:php_std_error_handling
Unexecuted instantiation: microtime.c:php_std_error_handling
Unexecuted instantiation: net.c:php_std_error_handling
Unexecuted instantiation: pack.c:php_std_error_handling
Unexecuted instantiation: pageinfo.c:php_std_error_handling
Unexecuted instantiation: password.c:php_std_error_handling
Unexecuted instantiation: php_fopen_wrapper.c:php_std_error_handling
Unexecuted instantiation: proc_open.c:php_std_error_handling
Unexecuted instantiation: quot_print.c:php_std_error_handling
Unexecuted instantiation: scanf.c:php_std_error_handling
Unexecuted instantiation: sha1.c:php_std_error_handling
Unexecuted instantiation: soundex.c:php_std_error_handling
Unexecuted instantiation: streamsfuncs.c:php_std_error_handling
Unexecuted instantiation: string.c:php_std_error_handling
Unexecuted instantiation: strnatcmp.c:php_std_error_handling
Unexecuted instantiation: syslog.c:php_std_error_handling
Unexecuted instantiation: type.c:php_std_error_handling
Unexecuted instantiation: uniqid.c:php_std_error_handling
Unexecuted instantiation: url_scanner_ex.c:php_std_error_handling
Unexecuted instantiation: url.c:php_std_error_handling
Unexecuted instantiation: user_filters.c:php_std_error_handling
Unexecuted instantiation: uuencode.c:php_std_error_handling
Unexecuted instantiation: var_unserializer.c:php_std_error_handling
Unexecuted instantiation: var.c:php_std_error_handling
Unexecuted instantiation: versioning.c:php_std_error_handling
Unexecuted instantiation: crypt_sha256.c:php_std_error_handling
Unexecuted instantiation: crypt_sha512.c:php_std_error_handling
Unexecuted instantiation: php_crypt_r.c:php_std_error_handling
Unexecuted instantiation: php_uri.c:php_std_error_handling
Unexecuted instantiation: php_uri_common.c:php_std_error_handling
Unexecuted instantiation: uri_parser_rfc3986.c:php_std_error_handling
Unexecuted instantiation: uri_parser_whatwg.c:php_std_error_handling
Unexecuted instantiation: uri_parser_php_parse_url.c:php_std_error_handling
Unexecuted instantiation: explicit_bzero.c:php_std_error_handling
Unexecuted instantiation: fopen_wrappers.c:php_std_error_handling
Unexecuted instantiation: getopt.c:php_std_error_handling
Unexecuted instantiation: main.c:php_std_error_handling
Unexecuted instantiation: network.c:php_std_error_handling
Unexecuted instantiation: output.c:php_std_error_handling
Unexecuted instantiation: php_content_types.c:php_std_error_handling
Unexecuted instantiation: php_ini_builder.c:php_std_error_handling
Unexecuted instantiation: php_ini.c:php_std_error_handling
Unexecuted instantiation: php_glob.c:php_std_error_handling
Unexecuted instantiation: php_odbc_utils.c:php_std_error_handling
Unexecuted instantiation: php_open_temporary_file.c:php_std_error_handling
Unexecuted instantiation: php_scandir.c:php_std_error_handling
Unexecuted instantiation: php_syslog.c:php_std_error_handling
Unexecuted instantiation: php_ticks.c:php_std_error_handling
Unexecuted instantiation: php_variables.c:php_std_error_handling
Unexecuted instantiation: reentrancy.c:php_std_error_handling
Unexecuted instantiation: rfc1867.c:php_std_error_handling
Unexecuted instantiation: safe_bcmp.c:php_std_error_handling
Unexecuted instantiation: SAPI.c:php_std_error_handling
Unexecuted instantiation: snprintf.c:php_std_error_handling
Unexecuted instantiation: spprintf.c:php_std_error_handling
Unexecuted instantiation: strlcat.c:php_std_error_handling
Unexecuted instantiation: strlcpy.c:php_std_error_handling
Unexecuted instantiation: php_io.c:php_std_error_handling
Unexecuted instantiation: php_io_copy_linux.c:php_std_error_handling
Unexecuted instantiation: poll_backend_epoll.c:php_std_error_handling
Unexecuted instantiation: poll_backend_eventport.c:php_std_error_handling
Unexecuted instantiation: poll_backend_kqueue.c:php_std_error_handling
Unexecuted instantiation: poll_backend_poll.c:php_std_error_handling
Unexecuted instantiation: poll_core.c:php_std_error_handling
Unexecuted instantiation: poll_fd_table.c:php_std_error_handling
Unexecuted instantiation: poll_handle.c:php_std_error_handling
Unexecuted instantiation: cast.c:php_std_error_handling
Unexecuted instantiation: filter.c:php_std_error_handling
Unexecuted instantiation: glob_wrapper.c:php_std_error_handling
Unexecuted instantiation: memory.c:php_std_error_handling
Unexecuted instantiation: mmap.c:php_std_error_handling
Unexecuted instantiation: plain_wrapper.c:php_std_error_handling
Unexecuted instantiation: stream_errors.c:php_std_error_handling
Unexecuted instantiation: streams.c:php_std_error_handling
Unexecuted instantiation: transports.c:php_std_error_handling
Unexecuted instantiation: userspace.c:php_std_error_handling
Unexecuted instantiation: xp_socket.c:php_std_error_handling
Unexecuted instantiation: zend_optimizer.c:php_std_error_handling
Unexecuted instantiation: zend_system_id.c:php_std_error_handling
Unexecuted instantiation: zend.c:php_std_error_handling
Unexecuted instantiation: internal_functions_cli.c:php_std_error_handling
Unexecuted instantiation: fuzzer-parser.c:php_std_error_handling
Unexecuted instantiation: fuzzer-sapi.c:php_std_error_handling
Unexecuted instantiation: fuzzer-tracing-jit.c:php_std_error_handling
Unexecuted instantiation: fuzzer-exif.c:php_std_error_handling
Unexecuted instantiation: fuzzer-unserialize.c:php_std_error_handling
Unexecuted instantiation: fuzzer-function-jit.c:php_std_error_handling
Unexecuted instantiation: fuzzer-json.c:php_std_error_handling
Unexecuted instantiation: fuzzer-unserializehash.c:php_std_error_handling
Unexecuted instantiation: fuzzer-execute.c:php_std_error_handling
301
302
PHPAPI ZEND_COLD void php_verror(const char *docref, int type, const char *format, va_list args) PHP_ATTRIBUTE_FORMAT(printf, 3, 0);
303
304
/* PHPAPI void php_error(int type, const char *format, ...); */
305
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
306
  PHP_ATTRIBUTE_FORMAT(printf, 3, 4);
307
PHPAPI ZEND_COLD void php_error_docref_unchecked(const char *docref, int type, const char *format, ...);
308
END_EXTERN_C()
309
310
#define zenderror phperror
311
#define zendlex phplex
312
313
#define phpparse zendparse
314
#define phprestart zendrestart
315
#define phpin zendin
316
317
4.65k
#define php_memnstr zend_memnstr
318
148
#define php_memnistr zend_memnistr
319
320
/* functions */
321
BEGIN_EXTERN_C()
322
PHPAPI extern int (*php_register_internal_extensions_func)(void);
323
PHPAPI int php_register_internal_extensions(void);
324
PHPAPI void php_register_pre_request_shutdown(void (*func)(void *), void *userdata);
325
PHPAPI void php_com_initialize(void);
326
PHPAPI char *php_get_current_user(void);
327
328
PHPAPI const char *php_get_internal_encoding(void);
329
PHPAPI const char *php_get_input_encoding(void);
330
PHPAPI const char *php_get_output_encoding(void);
331
PHPAPI extern void (*php_internal_encoding_changed)(void);
332
END_EXTERN_C()
333
334
/* PHP-named Zend macro wrappers */
335
#define PHP_FN          ZEND_FN
336
#define PHP_MN          ZEND_MN
337
#define PHP_NAMED_FUNCTION    ZEND_NAMED_FUNCTION
338
#define PHP_FUNCTION      ZEND_FUNCTION
339
#define PHP_METHOD        ZEND_METHOD
340
341
#define PHP_RAW_NAMED_FE ZEND_RAW_NAMED_FE
342
#define PHP_NAMED_FE  ZEND_NAMED_FE
343
#define PHP_FE      ZEND_FE
344
#define PHP_DEP_FE      ZEND_DEP_FE
345
#define PHP_FALIAS    ZEND_FALIAS
346
#define PHP_DEP_FALIAS  ZEND_DEP_FALIAS
347
#define PHP_ME          ZEND_ME
348
#define PHP_MALIAS      ZEND_MALIAS
349
#define PHP_ABSTRACT_ME ZEND_ABSTRACT_ME
350
#define PHP_ME_MAPPING  ZEND_ME_MAPPING
351
#define PHP_FE_END      ZEND_FE_END
352
353
#define PHP_MODULE_STARTUP_N  ZEND_MODULE_STARTUP_N
354
#define PHP_MODULE_SHUTDOWN_N ZEND_MODULE_SHUTDOWN_N
355
#define PHP_MODULE_ACTIVATE_N ZEND_MODULE_ACTIVATE_N
356
#define PHP_MODULE_DEACTIVATE_N ZEND_MODULE_DEACTIVATE_N
357
#define PHP_MODULE_INFO_N   ZEND_MODULE_INFO_N
358
359
#define PHP_MODULE_STARTUP_D  ZEND_MODULE_STARTUP_D
360
#define PHP_MODULE_SHUTDOWN_D ZEND_MODULE_SHUTDOWN_D
361
#define PHP_MODULE_ACTIVATE_D ZEND_MODULE_ACTIVATE_D
362
#define PHP_MODULE_DEACTIVATE_D ZEND_MODULE_DEACTIVATE_D
363
#define PHP_MODULE_INFO_D   ZEND_MODULE_INFO_D
364
365
/* Compatibility macros */
366
416
#define PHP_MINIT   ZEND_MODULE_STARTUP_N
367
0
#define PHP_MSHUTDOWN ZEND_MODULE_SHUTDOWN_N
368
1.20M
#define PHP_RINIT   ZEND_MODULE_ACTIVATE_N
369
2.10M
#define PHP_RSHUTDOWN ZEND_MODULE_DEACTIVATE_N
370
28
#define PHP_MINFO   ZEND_MODULE_INFO_N
371
#define PHP_GINIT   ZEND_GINIT
372
#define PHP_GSHUTDOWN ZEND_GSHUTDOWN
373
374
#define PHP_MINIT_FUNCTION    ZEND_MODULE_STARTUP_D
375
#define PHP_MSHUTDOWN_FUNCTION  ZEND_MODULE_SHUTDOWN_D
376
#define PHP_RINIT_FUNCTION    ZEND_MODULE_ACTIVATE_D
377
#define PHP_RSHUTDOWN_FUNCTION  ZEND_MODULE_DEACTIVATE_D
378
#define PHP_MINFO_FUNCTION    ZEND_MODULE_INFO_D
379
#define PHP_GINIT_FUNCTION    ZEND_GINIT_FUNCTION
380
#define PHP_GSHUTDOWN_FUNCTION  ZEND_GSHUTDOWN_FUNCTION
381
382
#define PHP_MODULE_GLOBALS    ZEND_MODULE_GLOBALS
383
384
385
/* Output support */
386
#include "main/php_output.h"
387
388
389
#include "php_streams.h"
390
#include "php_memory_streams.h"
391
#include "fopen_wrappers.h"
392
393
394
/* Virtual current working directory support */
395
#include "zend_virtual_cwd.h"
396
397
#include "zend_constants.h"
398
399
/* connection status states */
400
300k
#define PHP_CONNECTION_NORMAL  0
401
0
#define PHP_CONNECTION_ABORTED 1
402
0
#define PHP_CONNECTION_TIMEOUT 2
403
404
#include "php_reentrancy.h"
405
406
/* the following typedefs are deprecated and will be removed in PHP
407
 * 9.0; use the standard C99 types instead */
408
typedef bool zend_bool;
409
typedef intptr_t zend_intptr_t;
410
typedef uintptr_t zend_uintptr_t;
411
412
#endif