mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.0'
* PHP-8.0: Fix build crc32 mac build fix
This commit is contained in:
commit
800685e2f9
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue