]> granicus.if.org Git - php/commitdiff
(php_minit_mhash): Don't use REGISTER_LONG_CONSTANT macro, because we
authorSascha Schumann <sas@php.net>
Mon, 15 Nov 1999 00:26:35 +0000 (00:26 +0000)
committerSascha Schumann <sas@php.net>
Mon, 15 Nov 1999 00:26:35 +0000 (00:26 +0000)
don't have a fixed size array of chars (this used to work nevertheless).

ext/mhash/mhash.c

index f6ed63a9c11671290aab002ce5e248b361cb7e27..e1746b99075ddfd858b6f9cb79bc7c56af7f8183 100644 (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);
                }
        }