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.4.0alpha1~191^2~2789 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e721b2461c6a553b70c24b160b7881ffde132620;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 1899740247..7d5eb0c710 100644 --- a/ext/hash/hash.c +++ b/ext/hash/hash.c @@ -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