Xuanwo opened a new pull request, #8583: URL: https://github.com/apache/opendal/pull/8583
# Which issue does this PR close? Related to the PHP bindings tracking issue #2813. Reproduction: [Nightly Tier A PHP 8.2 job](https://github.com/apache/opendal/actions/runs/44917493671/job/136886131513). # Rationale for this change The Ubuntu 26.04 runner ships multiple LLVM versions and uses Clang 21 by default. Bindgen finds the Clang executable and loads libclang independently. In an Ubuntu 26.04 reproduction, it loaded libclang 22 to parse Clang 21 headers and produced the same four errors in `xmmintrin.h` and `emmintrin.h` as the nightly job. Bindgen 0.73.2 also reproduced the mismatch. # What changes are included in this PR? Set `CLANG_PATH` to the resolved system Clang and `LIBCLANG_PATH` to the library directory from the same LLVM installation for both PHP matrix jobs. This keeps the workflow on `ubuntu-latest` and follows the runner's default Clang version. The failing PHP 8.2 Clippy invocation reproduced the nightly error in Ubuntu 26.04. With the workflow step applied, Clippy, the extension build, and the getting-started example passed with both `setup-php` builds, PHP 8.2.36 and PHP 8.4.28. # Are there any user-facing changes? This restores the PHP binding build and tests on the hosted runner. # Breaking changes # AI Usage Statement Pi with `codex/gpt-6.2-sol` at `xhigh` reproduced the failure, implemented the workflow fix, and verified both PHP versions in an Ubuntu 26.04 container. The PR matrix verifies both versions on the GitHub-hosted image. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
