X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_misc.h;h=32f2bc5d2ee0da75892b2892648315421184db39;hp=204d0e30497f440703f6496d1a75fc4464178b20;hb=a41703eafb1f1bb7f2968e97d471499c986a471b;hpb=6139024663154e9d02f5418621f7ee7f20e00c0d diff --git a/php_http_misc.h b/php_http_misc.h index 204d0e3..32f2bc5 100644 --- a/php_http_misc.h +++ b/php_http_misc.h @@ -176,6 +176,9 @@ static inline ZEND_RESULT_CODE php_http_ini_entry(const char *name_str, size_t n return FAILURE; } +#define Z_ISUSER(zv) (Z_TYPE(zv) <= 10) +#define Z_ISUSER_P(zvp) Z_ISUSER(*(zvp)) + #define RETVAL_STR_COPY(zs) ZVAL_STR_COPY(return_value, zs) #define RETURN_STR_COPY(zs) do { \ ZVAL_STR_COPY(return_value, zs); \