Skip to content

Fix ext/phar and improve PHP/AddCommand module#56

Merged
petk merged 1 commit intoPHP-8.3from
patch-add-command
Apr 1, 2026
Merged

Fix ext/phar and improve PHP/AddCommand module#56
petk merged 1 commit intoPHP-8.3from
patch-add-command

Conversation

@petk
Copy link
Copy Markdown
Owner

@petk petk commented Mar 25, 2026

This now enables building ext/phar as self-contained:

cd ext/phar
cmake -B cmake-build
cmake --build cmake-build
ctest --test-dir cmake-build -j --verbose
cmake --install cmake-build -j 12

A basic CMake test has been added to ext/phar to ensure that generated phar command-line tool works.

All the missing result variables so far related to the found PHP on the host system have been added to config files and FindPHP module (used by Autotools installation).

The pkg-config module has been adjusted to not required the TARGET argument anymore. This is done to resolve edge cases when PHP::sapi::cli is disabled. PHP's php.pc file wouldn't even need libraries listed, as it represents a header-only package for building PHP extensions.

@petk petk force-pushed the patch-add-command branch 15 times, most recently from bd799e9 to bbbe065 Compare April 1, 2026 09:37
This now enables building ext/phar as standalone:

  cd ext/phar
  cmake -B cmake-build
  cmake --build cmake-build
  ctest --test-dir cmake-build -j --verbose
  cmake --install cmake-build -j 12

A basic CMake test has been added to ext/phar to ensure that generated
phar command-line tool works.

All the missing result variables so far related to the found PHP on the
host system have been added to config files and FindPHP module (used by
Autotools installation).

The pkg-config module has been adjusted to not required the TARGET
argument anymore. This is done to resolve edge cases when PHP::sapi::cli
is disabled. PHP's php.pc file wouldn't even need libraries listed, as
it represents a header-only package for building PHP extensions.
@petk petk force-pushed the patch-add-command branch from bbbe065 to 8e0396b Compare April 1, 2026 11:42
@petk petk merged commit 8d5b8f7 into PHP-8.3 Apr 1, 2026
3 of 9 checks passed
@petk petk deleted the patch-add-command branch April 1, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant