mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix GH-12273 - configure __builtin_cpu_init() check
__builtin_cpu_init() is documented as having a void return type. It happens to return int on gcc, but is void on clang. Close GH-122274
This commit is contained in:
committed by
David Carlier
parent
d9e72bcdab
commit
66a33dbdce
3
NEWS
3
NEWS
@@ -9,10 +9,9 @@ PHP NEWS
|
|||||||
warning). (Girgias)
|
warning). (Girgias)
|
||||||
. Fixed bug GH-12215 (Module entry being overwritten causes type errors in
|
. Fixed bug GH-12215 (Module entry being overwritten causes type errors in
|
||||||
ext/dom). (nielsdos)
|
ext/dom). (nielsdos)
|
||||||
|
|
||||||
- Core:
|
|
||||||
. Fixed bug GH-12207 (memory leak when class using trait with doc block).
|
. Fixed bug GH-12207 (memory leak when class using trait with doc block).
|
||||||
(rioderelfte)
|
(rioderelfte)
|
||||||
|
. Fixed bug GH-12273 (__builtin_cpu_init check). (Freaky)
|
||||||
|
|
||||||
- Filter:
|
- Filter:
|
||||||
. Fix explicit FILTER_REQUIRE_SCALAR with FILTER_CALLBACK (ilutov)
|
. Fix explicit FILTER_REQUIRE_SCALAR with FILTER_CALLBACK (ilutov)
|
||||||
|
|||||||
@@ -2713,7 +2713,7 @@ AC_DEFUN([PHP_CHECK_BUILTIN_CPU_INIT], [
|
|||||||
AC_MSG_CHECKING([for __builtin_cpu_init])
|
AC_MSG_CHECKING([for __builtin_cpu_init])
|
||||||
|
|
||||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[
|
||||||
return __builtin_cpu_init()? 1 : 0;
|
__builtin_cpu_init();
|
||||||
]])], [
|
]])], [
|
||||||
have_builtin_cpu_init=1
|
have_builtin_cpu_init=1
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
|
|||||||
Reference in New Issue
Block a user