X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_misc.h;h=a4f579d76c6e245b888fc838d0c551c5dd7f96de;hp=cf00f24ef5a71e3d3b21c1a8e0283f2c439e8b97;hb=51443ce28ed92ddc3967757e981f5c9a2f784a8d;hpb=e867316f1364f589eec67cc684703c874984430b diff --git a/php_http_misc.h b/php_http_misc.h index cf00f24..a4f579d 100644 --- a/php_http_misc.h +++ b/php_http_misc.h @@ -154,6 +154,15 @@ static inline const char *php_http_locate_bin_eol(const char *bin, size_t len, i # define PHP_HTTP_ZEND_LITERAL_CCN , NULL #endif +#if PHP_VERSION_ID < 50500 +#undef SUCCESS +#undef FAILURE +typedef enum { + SUCCESS = 0, + FAILURE = -1 +} ZEND_RESULT_CODE; +#endif + #if PHP_VERSION_ID < 50700 # define z_is_true zend_is_true #else @@ -200,7 +209,7 @@ static inline zval *php_http_zsep(zend_bool add_ref, int type, zval *z) } } -static inline STATUS php_http_ini_entry(const char *name_str, size_t name_len, const char **value_str, size_t *value_len, zend_bool orig TSRMLS_DC) +static inline ZEND_RESULT_CODE php_http_ini_entry(const char *name_str, size_t name_len, const char **value_str, size_t *value_len, zend_bool orig TSRMLS_DC) { zend_ini_entry *ini_entry;