Skip to content

Commit 9601a4e

Browse files
committed
Added License .
1 parent 9a13684 commit 9601a4e

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

hashids.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,25 @@ PHP_MINFO_FUNCTION(hashids)
378378
DISPLAY_INI_ENTRIES();
379379
}
380380

381+
/*
382+
Copyright (C) 2014 Latchezar Tzvetkoff
383+
384+
Permission is hereby granted, free of charge,
385+
to any person obtaining a copy of this software and associated documentation files (the "Software"),
386+
to deal in the Software without restriction, including without limitation the rights to use, copy,
387+
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
388+
and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
389+
390+
The above copyright notice and this permission notice shall be included in all copies or substantial
391+
portions of the Software. d
392+
393+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
394+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
395+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
396+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
397+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
398+
DEALINGS IN THE SOFTWARE.
399+
*/
381400
/* common init */
382401
hashids_t * hashids_init(const char *salt, size_t min_hash_length, const char *alphabet)
383402
{

php_hashids.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,25 @@ extern zend_module_entry hashids_module_entry;
2626

2727
#define PHP_HASHIDS_VERSION "0.1.0" /* Replace with version number for your extension */
2828

29+
/*
30+
Copyright (C) 2014 Latchezar Tzvetkoff
31+
32+
Permission is hereby granted, free of charge,
33+
to any person obtaining a copy of this software and associated documentation files (the "Software"),
34+
to deal in the Software without restriction, including without limitation the rights to use, copy,
35+
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
36+
and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
37+
38+
The above copyright notice and this permission notice shall be included in all copies or substantial
39+
portions of the Software. d
40+
41+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
42+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
44+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
45+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
46+
DEALINGS IN THE SOFTWARE.
47+
*/
2948
/* minimal alphabet length */
3049
#define HASHIDS_MIN_ALPHABET_LENGTH 16u
3150

0 commit comments

Comments
 (0)