{
zend_utility_functions zuf;
zend_utility_values zuv;
- int module_number=0; /* for REGISTER_INI_ENTRIES() */
+ int retval = SUCCESS, module_number=0; /* for REGISTER_INI_ENTRIES() */
char *php_os;
zend_module_entry *module;
#ifdef ZTS
};
unsigned int i;
+
+ zend_try {
+ /* 2 = Count of deprecation structs */
+ for (i = 0; i < 2; i++) {
+ const char **p = directives[i].directives;
- /* 2 = Count of deprecation structs */
- for (i = 0; i < 2; i++) {
- const char **p = directives[i].directives;
+ while(*p) {
+ long value;
- while(*p) {
- long value;
+ if (cfg_get_long((char*)*p, &value) == SUCCESS && value) {
+ zend_error(directives[i].error_level, directives[i].phrase, *p);
+ }
- if (cfg_get_long((char*)*p, &value) == SUCCESS && value) {
- zend_error(directives[i].error_level, directives[i].phrase, *p);
+ ++p;
}
-
- ++p;
}
- }
+ } zend_catch {
+ retval = FAILURE;
+ } zend_end_try();
}
sapi_deactivate(TSRMLS_C);
zend_interned_strings_snapshot(TSRMLS_C);
/* we're done */
- return SUCCESS;
+ return retval;
}
/* }}} */