Merge branch 'PHP-8.0'

* PHP-8.0:
  Fix build
  crc32 mac build fix
This commit is contained in:
Nikita Popov 2021-02-01 09:46:39 +01:00
commit 800685e2f9
2 changed files with 2 additions and 1 deletions

View file

@ -313,7 +313,7 @@ void sdl_restore_uri_credentials(sdlCtx *ctx)
ctx->context = NULL;
}
#define SAFE_STR(a) ((a)?a:"")
#define SAFE_STR(a) ((a)?((const char *)a):"")
static void load_wsdl_ex(zval *this_ptr, char *struri, sdlCtx *ctx, int include)
{

View file

@ -43,6 +43,7 @@ static inline int has_crc32_insn() {
size_t reslen = sizeof(res);
if (sysctlbyname("hw.optional.armv8_crc32", &res, &reslen, NULL, 0) < 0)
res = 0;
return res;
# else
res = 0;
return res;