com php-src: remove PHP4 extension structure compat: ext/standard/dl.c
| From: | Stanislav Malyshev | Date: | Fri, 09 Jan 2015 14:07:04 +0000 |
| Subject: | com php-src: remove PHP4 extension structure compat: ext/standard/dl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84515@lists.php.net to get a copy of this message | ||
Commit: 13e290d5e95dfd4cad5eac2d9f0e0d8385f68b15
Author: Julien Pauli <jpauli@php.net> Fri, 9 Jan 2015 15:07:04 +0100
Parents: 63346f4c4bf4ef5d33771d6d96f746a8516e0bcc
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=13e290d5e95dfd4cad5eac2d9f0e0d8385f68b15
Log:
remove PHP4 extension structure compat
Changed paths:
M ext/standard/dl.c
Diff:
diff --git a/ext/standard/dl.c b/ext/standard/dl.c
index 82baa4e..c6a1b78 100644
--- a/ext/standard/dl.c
+++ b/ext/standard/dl.c
@@ -182,46 +182,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;
}