(php_minit_mhash): Don't use REGISTER_LONG_CONSTANT macro, because we

don't have a fixed size array of chars (this used to work nevertheless).
This commit is contained in:
Sascha Schumann 1999-11-15 00:26:35 +00:00
parent b85f2cba43
commit d019ed533f

View File

@ -55,7 +55,7 @@ static PHP_MINIT_FUNCTION(mhash)
name = mhash_get_hash_name(i);
if(name) {
snprintf(buf, 127, "MHASH_%s", name);
REGISTER_LONG_CONSTANT(buf, i, CONST_PERSISTENT);
zend_register_long_constant(buf, strlen(buf) + 1, i, CONST_PERSISTENT, module_number ELS_CC);
free(name);
}
}