We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0ea66f commit 7340a46Copy full SHA for 7340a46
README.md
@@ -12,7 +12,8 @@
12
13
```shell
14
$ git clone https://github.com/cdoco/hashids.phpc.git
15
-$ cd hashids.phpc && phpize && ./configure && make && make install
+$ cd hashids.phpc
16
+$ phpize && ./configure && make && make install
17
```
18
19
you can set some options in php.ini, or set in the constructor.
hashids.c
@@ -339,6 +339,12 @@ static const zend_function_entry hashids_methods[] = {
339
PHP_FE_END
340
};
341
342
+PHP_GINIT_FUNCTION(hashids) {
343
+ hashids_globals->salt = NULL;
344
+ hashids_globals->min_hash_length = 0;
345
+ hashids_globals->alphabet = HASHIDS_DEFAULT_ALPHABET;
346
+}
347
+
348
PHP_MINIT_FUNCTION(hashids)
349
{
350
REGISTER_INI_ENTRIES();
0 commit comments