summaryrefslogtreecommitdiff
path: root/ext/standard/dl.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2005-07-18 16:20:08 +0000
committerDmitry Stogov <dmitry@php.net>2005-07-18 16:20:08 +0000
commit70bd938bbdc264f94d6b480ae535636a241b5e3c (patch)
tree5792b3a644406d170543ac43e604c1a87c68f454 /ext/standard/dl.c
parente63d1706cfe5fc572ea99df499ee11875034259b (diff)
downloadphp-git-70bd938bbdc264f94d6b480ae535636a241b5e3c.tar.gz
Fixed bug in new module statrup mechanism
Diffstat (limited to 'ext/standard/dl.c')
-rw-r--r--ext/standard/dl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/dl.c b/ext/standard/dl.c
index 65cc533b61..278950d5fa 100644
--- a/ext/standard/dl.c
+++ b/ext/standard/dl.c
@@ -219,7 +219,7 @@ void php_dl(zval *file, int type, zval *return_value TSRMLS_DC)
module_entry->module_number = zend_next_free_module();
module_entry->handle = handle;
- if (zend_register_module_ex(module_entry TSRMLS_CC) == FAILURE) {
+ if ((module_entry = zend_register_module_ex(module_entry TSRMLS_CC)) == NULL) {
DL_UNLOAD(handle);
RETURN_FALSE;
}