summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-07-20 19:23:55 +0000
committerMarcus Boerger <helly@php.net>2004-07-20 19:23:55 +0000
commit514dfbfbed61fd834b5f96b480315d9cf6c2b511 (patch)
treeecb917e3eb20d84fec8605d6f4ac163065ac4c43
parentf89486a3a07bfc0872fdf8171369073bebc57d2c (diff)
downloadphp-git-514dfbfbed61fd834b5f96b480315d9cf6c2b511.tar.gz
- Need to set handle prior to calling zend_register_module_ex()
(Marcus, Kamesh Jayachandran <kameshj at fastmail dot fm>)
-rw-r--r--ext/standard/dl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/standard/dl.c b/ext/standard/dl.c
index 47b35080c1..ffccc90467 100644
--- a/ext/standard/dl.c
+++ b/ext/standard/dl.c
@@ -236,7 +236,8 @@ void php_dl(pval *file, int type, pval *return_value TSRMLS_DC)
}
module_entry->type = type;
module_entry->module_number = zend_next_free_module();
-
+ module_entry->handle = handle;
+
if (zend_register_module_ex(module_entry TSRMLS_CC) == FAILURE) {
DL_UNLOAD(handle);
RETURN_FALSE;
@@ -250,8 +251,6 @@ void php_dl(pval *file, int type, pval *return_value TSRMLS_DC)
}
}
- module_entry->handle = handle;
-
RETURN_TRUE;
}
/* }}} */