summaryrefslogtreecommitdiff
path: root/ext/standard/dl.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2015-01-31 23:11:18 -0800
committerStanislav Malyshev <stas@php.net>2015-01-31 23:11:18 -0800
commitd6b18650074e960950f96f5b3a54d3595a4ceeba (patch)
treedfe8d10cb776193ab076bb39ef6b17b335783c6d /ext/standard/dl.c
parentdd15207dc57df01c68397ee7fcc5e92f39f2520a (diff)
parent13e290d5e95dfd4cad5eac2d9f0e0d8385f68b15 (diff)
downloadphp-git-d6b18650074e960950f96f5b3a54d3595a4ceeba.tar.gz
Merge branch 'pull-request/988'
* pull-request/988: remove PHP4 extension structure compat
Diffstat (limited to 'ext/standard/dl.c')
-rw-r--r--ext/standard/dl.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/ext/standard/dl.c b/ext/standard/dl.c
index fef635c6b7..cadbc140cc 100644
--- a/ext/standard/dl.c
+++ b/ext/standard/dl.c
@@ -170,46 +170,12 @@ PHPAPI int php_load_extension(char *filename, int type, int start_now)
}
module_entry = get_module();
if (module_entry->zend_api != ZEND_MODULE_API_NO) {
- /* Check for pre-4.1.0 module which has a slightly different module_entry structure :( */
- struct pre_4_1_0_module_entry {
- char *name;
- zend_function_entry *functions;
- int (*module_startup_func)(INIT_FUNC_ARGS);
- int (*module_shutdown_func)(SHUTDOWN_FUNC_ARGS);
- int (*request_startup_func)(INIT_FUNC_ARGS);
- int (*request_shutdown_func)(SHUTDOWN_FUNC_ARGS);
- void (*info_func)(ZEND_MODULE_INFO_FUNC_ARGS);
- int (*global_startup_func)(void);
- int (*global_shutdown_func)(void);
- int globals_id;
- int module_started;
- unsigned char type;
- void *handle;
- int module_number;
- unsigned char zend_debug;
- unsigned char zts;
- unsigned int zend_api;
- };
-
- const char *name;
- int zend_api;
-
- if ((((struct pre_4_1_0_module_entry *)module_entry)->zend_api > 20000000) &&
- (((struct pre_4_1_0_module_entry *)module_entry)->zend_api < 20010901)
- ) {
- name = ((struct pre_4_1_0_module_entry *)module_entry)->name;
- zend_api = ((struct pre_4_1_0_module_entry *)module_entry)->zend_api;
- } else {
- name = module_entry->name;
- zend_api = module_entry->zend_api;
- }
-
php_error_docref(NULL, error_type,
"%s: Unable to initialize module\n"
"Module compiled with module API=%d\n"
"PHP compiled with module API=%d\n"
"These options need to match\n",
- name, zend_api, ZEND_MODULE_API_NO);
+ module_entry->name, module_entry->zend_api, ZEND_MODULE_API_NO);
DL_UNLOAD(handle);
return FAILURE;
}