]> granicus.if.org Git - php/commitdiff
- Fix for bug #49223 Inconsistency using get_defined_constants(true)
authorGarrett Serack <garretts@php.net>
Mon, 17 Aug 2009 21:28:22 +0000 (21:28 +0000)
committerGarrett Serack <garretts@php.net>
Mon, 17 Aug 2009 21:28:22 +0000 (21:28 +0000)
ext/hash/hash.c

index 189974024772690663820665c85fe6242feccf1a..7d5eb0c71093e7a1b9d00d6f6b73317d28cdbe6b 100644 (file)
@@ -812,8 +812,7 @@ static void mhash_init(INIT_FUNC_ARGS)
                len = slprintf(buf, 127, "MHASH_%s", algorithm.mhash_name, strlen(algorithm.mhash_name));
                zend_register_long_constant(buf, len + 1, algorithm.value, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC);
        }
-
-       zend_register_module_ex(&mhash_module_entry TSRMLS_CC);
+       zend_register_internal_module(&mhash_module_entry TSRMLS_CC);
 }
 
 /* {{{ proto binary mhash(int hash, binary data [, binary key]) U