diff options
author | Sascha Schumann <sas@php.net> | 1999-11-15 00:26:35 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-11-15 00:26:35 +0000 |
commit | d019ed533f32b870becd3e8a974c1aa2d89b2acb (patch) | |
tree | 65d04aa6f17dfe50340fbc936037fd30585bbf62 | |
parent | b85f2cba43ece203d889565a851afe9454185c46 (diff) | |
download | php-git-d019ed533f32b870becd3e8a974c1aa2d89b2acb.tar.gz |
(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).
-rw-r--r-- | ext/mhash/mhash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mhash/mhash.c b/ext/mhash/mhash.c index f6ed63a9c1..e1746b9907 100644 --- a/ext/mhash/mhash.c +++ b/ext/mhash/mhash.c @@ -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); } } |