mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
(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:
parent
b85f2cba43
commit
d019ed533f
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user