继续讲php_module_startup
一、检查废弃的ini配置,如果有设置,则报警或报错
{
struct {
const long error_level;
const char *phrase;
const char *directives[17]; /* Remember to change this if the number of directives change */
} directives[2] = {
{
E_DEPRECATED,
"Directive '%s' is deprecated",
{
"track_errors",
NULL
}
},
{
E_CORE_ERROR,
"Directive '%s' is no longer available in PHP",
{
"allow_call_time_pass_reference",
"asp_tags",
"define_syslog_variables",
"highlight.bg",
"magic_quotes_gpc",
"magic_quotes_runtime",
"magic_quotes_sybase",
"register_globals",
"register_long_arrays",
"safe_mode",
"safe_mode_gid",
"safe_mode_include_dir",
"safe_mode_exec_dir",
"safe_mode_allowed_env_vars",
"safe_mode_protected_env_vars",
"zend.ze1_compatibility_mode",
NULL
}
}
};
unsigned int i;
zend_try {
/* 2 = Co
PHP内核源码解析:php_module_startup详解

本文详细介绍了PHP内核源码中php_module_startup的执行流程,包括检查废弃ini配置、cwd重置、sapi_globals重置、内存池重置以及zend_interned_strings开关存储的重置,探讨了不同生命周期内函数的作用。
最低0.47元/天 解锁文章
897

被折叠的 条评论
为什么被折叠?



