|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #81238 PHP 8.1: fiber support missing for Solaris Sparc, configure fails
Submitted: 2021-07-09 08:44 UTC Modified: 2021-07-12 13:56 UTC
From: rainer dot jung at kippdata dot de Assigned: nikic (profile)
Status: Closed Package: *General Issues
PHP Version: 8.1.0alpha3 OS: Solaris 10 Sparc
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: rainer dot jung at kippdata dot de
New email:
PHP Version: OS:


 [2021-07-09 08:44 UTC] rainer dot jung at kippdata dot de
configure for PHP 8.1 fails on Solaris 10 Sparc with:

checking for fiber switching context...
configure: error: Unable to determine platform!

It seems to imported assembler files from Boost context doe not contain support for Sparc Solaris 10.

The sparc architecture is listen under

but the OS Solaris is not part of the table.

Since it supports ucontext_t, the comment below the table should apply: "If the architecture is not supported but the platform provides ucontext_t, Boost.Context should be compiled with BOOST_USE_UCONTEXT and b2 property context-impl=ucontext."

Solaris does support ucontext_t (see "man setcontext"), so it would be nice, if PHP fibers would support this fallbacl mechanism as well. Yes, there are warnings, that such fibers will be slow, but currently, due to the configure failure, there is no more Solaris 10 Sparc support for PHP 8.1 at all.

Another option would be to make fibers optional.


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-07-10 04:37 UTC]
The following pull request has been associated:

Patch Name: Fiber ucontext support
On GitHub:
 [2021-07-10 04:41 UTC]
Can you please try compiling with the pull request linked as well as running all the tests? Thank you!
 [2021-07-12 08:14 UTC] rainer dot jung at kippdata dot de
I regenerated "configure". The patch works well for me. Solaris now builds and tests fine and Linux still builds and tests fine and uses the same assembler implementation it was using before.
Thanks a bunch for the good and ultra-fast patch!
 [2021-07-12 13:56 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2021-07-12 13:56 UTC]
Thanks for the confirmation! The PR has landed in, so closing here.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Sep 26 17:01:25 2023 UTC