summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2004-05-18 16:13:57 +0000
committerStanislav Malyshev <stas@php.net>2004-05-18 16:13:57 +0000
commitda26db30543c97c485424030054471d2daffce64 (patch)
tree4529115a2e83d6932030a63b18443f407b0825f4
parent17d009c3b4f8745da5439d80f89bfd85646d2204 (diff)
downloadphp-git-da26db30543c97c485424030054471d2daffce64.tar.gz
Z_TYPE_P is for zvals
-rw-r--r--Zend/zend_API.c2
-rw-r--r--ext/standard/dl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 1c0198eeea..010655a89a 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -1187,7 +1187,7 @@ ZEND_API int zend_register_module_ex(zend_module_entry *module TSRMLS_DC)
if (!module->module_started && module->module_startup_func) {
EG(current_module) = module;
- if (module->module_startup_func(Z_TYPE_P(module), module->module_number TSRMLS_CC)==FAILURE) {
+ if (module->module_startup_func(module->type, module->module_number TSRMLS_CC)==FAILURE) {
zend_error(E_CORE_ERROR,"Unable to start %s module", module->name);
EG(current_module) = NULL;
return FAILURE;
diff --git a/ext/standard/dl.c b/ext/standard/dl.c
index 709370503d..87c63aa91a 100644
--- a/ext/standard/dl.c
+++ b/ext/standard/dl.c
@@ -234,7 +234,7 @@ void php_dl(pval *file, int type, pval *return_value TSRMLS_DC)
DL_UNLOAD(handle);
RETURN_FALSE;
}
- Z_TYPE_P(module_entry) = type;
+ module_entry->type = type;
module_entry->module_number = zend_next_free_module();
zend_register_module_ex(module_entry TSRMLS_CC);