X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_misc.h;h=d9b9e4ec5fb75df794cfbbf3bcda77c8d2a20d66;hb=d01985309a42186e0c3ac1e8dd6e2d4a094d30c9;hp=204d0e30497f440703f6496d1a75fc4464178b20;hpb=7096ff6dbb61fd13b9b04ef86bfbece8fb4b2ea0;p=m6w6%2Fext-http diff --git a/php_http_misc.h b/php_http_misc.h index 204d0e3..d9b9e4e 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); \ @@ -222,7 +225,7 @@ static inline void *php_http_arrkey_stringify(php_http_arrkey_t *arrkey, zend_ha } if (key) { - memcpy(&arrkey, key, sizeof(*key)); + memcpy(arrkey, key, sizeof(*key)); } if ((arrkey->stringified = !arrkey->key)) { arrkey->key = zend_long_to_str(arrkey->h);