Skip to content

Commit

Permalink
Fix GH-9566: disable assembly for Fiber on FreeBSD i386.
Browse files Browse the repository at this point in the history
preparing in case there is more architectures especially the not tested.
  • Loading branch information
devnexen committed Oct 10, 2022
1 parent 0430e76 commit be53e5e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? ????, PHP 8.1.12

- Core:
. Fixes segfault with Fiber on FreeBSD i386 architecture. (David Carlier)

- Fileinfo:
. Fixed bug GH-8805 (finfo returns wrong mime type for woff/woff2 files).
(Anatol)
Expand Down
10 changes: 10 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1211,6 +1211,7 @@ AS_CASE([$host_cpu],
AS_CASE([$host_os],
[darwin*], [fiber_os="mac"],
[aix*|os400*], [fiber_os="aix"],
[freebsd*], [fiber_os="freebsd"],
[fiber_os="other"]
)

Expand All @@ -1234,6 +1235,15 @@ elif test "$fiber_os" = 'aix'; then
# AIX uses a different calling convention (shared with non-_CALL_ELF Linux).
# The AIX assembler isn't GNU, but the file is compatible.
fiber_asm_file="${fiber_asm_file_prefix}_xcoff_gas"
elif test "$fiber_os" = 'freebsd'; then
case $fiber_cpu in
i386*)
fiber_asm="no"
;;
*)
fiber_asm_file="${fiber_asm_file_prefix}_elf_gas"
;;
esac
elif test "$fiber_asm_file_prefix" != 'unknown'; then
fiber_asm_file="${fiber_asm_file_prefix}_elf_gas"
else
Expand Down

0 comments on commit be53e5e

Please sign in to comment.