|
21 | 21 | #ifndef PHP_HASHIDS_H |
22 | 22 | #define PHP_HASHIDS_H |
23 | 23 |
|
| 24 | +#include <php.h> |
| 25 | +#include <php_ini.h> |
| 26 | +#include <ext/standard/info.h> |
| 27 | + |
24 | 28 | extern zend_module_entry hashids_module_entry; |
25 | 29 | #define phpext_hashids_ptr &hashids_module_entry |
26 | 30 |
|
27 | | -#define PHP_HASHIDS_VERSION "1.0.0-rc" |
| 31 | +#define PHP_HASHIDS_VERSION "1.0.0" |
28 | 32 |
|
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 | | -*/ |
48 | 33 | /* minimal alphabet length */ |
49 | 34 | #define HASHIDS_MIN_ALPHABET_LENGTH 16u |
50 | 35 |
|
@@ -119,14 +104,6 @@ size_t hashids_numbers_count(hashids_t *hashids, char *str); |
119 | 104 | size_t hashids_decode(hashids_t *hashids, char *str, unsigned long long *numbers); |
120 | 105 | size_t hashids_decode_hex(hashids_t *hashids, char *str, char *output); |
121 | 106 |
|
122 | | -#ifdef PHP_WIN32 |
123 | | -# define PHP_HASHIDS_API __declspec(dllexport) |
124 | | -#elif defined(__GNUC__) && __GNUC__ >= 4 |
125 | | -# define PHP_HASHIDS_API __attribute__ ((visibility("default"))) |
126 | | -#else |
127 | | -# define PHP_HASHIDS_API |
128 | | -#endif |
129 | | - |
130 | 107 | #ifdef ZTS |
131 | 108 | #include "TSRM.h" |
132 | 109 | #endif |
|
0 commit comments