diff options
| author | Ben Fuhrmannek | 2014-12-18 12:06:55 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2014-12-18 12:06:55 +0100 |
| commit | 68960966324f4701a1f402e97f17ca7870a317a4 (patch) | |
| tree | 5a3c4c7deb4c1805d4a006a7e2cd441abf693286 /php_suhosin.h | |
| parent | 59dab711ba444a16fc5f7114d628749e1818e303 (diff) | |
removed compatibility to PHP version < 5.4 (by ifdef)
Diffstat (limited to 'php_suhosin.h')
| -rw-r--r-- | php_suhosin.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/php_suhosin.h b/php_suhosin.h index 88890fb..ccf1a91 100644 --- a/php_suhosin.h +++ b/php_suhosin.h | |||
| @@ -120,7 +120,7 @@ protected_varname: | |||
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | 122 | ||
| 123 | #if PHP_VERSION_ID < 50203 | 123 | #if 0 //PHP_VERSION_ID < 50203 |
| 124 | static inline int php_varname_check(char *name, int name_len, zend_bool silent TSRMLS_DC) /* {{{ */ | 124 | static inline int php_varname_check(char *name, int name_len, zend_bool silent TSRMLS_DC) /* {{{ */ |
| 125 | { | 125 | { |
| 126 | if (name_len == sizeof("GLOBALS") - 1 && !memcmp(name, "GLOBALS", sizeof("GLOBALS") - 1)) { | 126 | if (name_len == sizeof("GLOBALS") - 1 && !memcmp(name, "GLOBALS", sizeof("GLOBALS") - 1)) { |
| @@ -453,8 +453,8 @@ size_t suhosin_strnspn(const char *input, size_t n, const char *accept); | |||
| 453 | size_t suhosin_strncspn(const char *input, size_t n, const char *reject); | 453 | size_t suhosin_strncspn(const char *input, size_t n, const char *reject); |
| 454 | 454 | ||
| 455 | /* Add pseudo refcount macros for PHP version < 5.3 */ | 455 | /* Add pseudo refcount macros for PHP version < 5.3 */ |
| 456 | #ifndef Z_REFCOUNT_PP | 456 | // #ifndef Z_REFCOUNT_PP |
| 457 | 457 | #if 0 | |
| 458 | #define Z_REFCOUNT_PP(ppz) Z_REFCOUNT_P(*(ppz)) | 458 | #define Z_REFCOUNT_PP(ppz) Z_REFCOUNT_P(*(ppz)) |
| 459 | #define Z_SET_REFCOUNT_PP(ppz, rc) Z_SET_REFCOUNT_P(*(ppz), rc) | 459 | #define Z_SET_REFCOUNT_PP(ppz, rc) Z_SET_REFCOUNT_P(*(ppz), rc) |
| 460 | #define Z_ADDREF_PP(ppz) Z_ADDREF_P(*(ppz)) | 460 | #define Z_ADDREF_PP(ppz) Z_ADDREF_P(*(ppz)) |
| @@ -522,9 +522,9 @@ static zend_always_inline zend_bool zval_set_isref_to_p(zval* pz, zend_bool isre | |||
| 522 | return pz->is_ref = isref; | 522 | return pz->is_ref = isref; |
| 523 | } | 523 | } |
| 524 | 524 | ||
| 525 | #else | 525 | // #else |
| 526 | 526 | ||
| 527 | #define PHP_ATLEAST_5_3 true | 527 | // #define PHP_ATLEAST_5_3 true |
| 528 | 528 | ||
| 529 | #endif | 529 | #endif |
| 530 | 530 | ||
