]> granicus.if.org Git - php/commitdiff
- Need to set handle prior to calling zend_register_module_ex()
authorMarcus Boerger <helly@php.net>
Tue, 20 Jul 2004 19:23:55 +0000 (19:23 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 20 Jul 2004 19:23:55 +0000 (19:23 +0000)
  (Marcus, Kamesh Jayachandran <kameshj at fastmail dot fm>)

ext/standard/dl.c

index 47b35080c1334725efa5d3dff0fce6b2b2e70554..ffccc90467fe613d183f355d519cebc148981db0 100644 (file)
@@ -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;
 }
 /* }}} */