From: Garrett Serack Date: Mon, 17 Aug 2009 21:28:22 +0000 (+0000) Subject: - Fix for bug #49223 Inconsistency using get_defined_constants(true) X-Git-Tag: php-5.3.1RC1~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6cec8d8ed3e3bb0a523e54da11ee1e0dcc23fd1c;p=php - Fix for bug #49223 Inconsistency using get_defined_constants(true) --- diff --git a/ext/hash/hash.c b/ext/hash/hash.c index 5b359129ba..196a2a2457 100644 --- a/ext/hash/hash.c +++ b/ext/hash/hash.c @@ -643,8 +643,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 string mhash(int hash, string data [, string key])