1
0
mirror of https://github.com/php/pie.git synced 2026-03-23 23:12:17 +01:00
Commit Graph

1026 Commits

Author SHA1 Message Date
James Titcumb
cee6573026 Ensure the build tool finder checks PHP API version in phpize
This avoids the wrong phpize tool being detected and giving a false positive in the build tool check.
2026-03-09 12:26:17 +00:00
James Titcumb
28eec8c422 Merge pull request #528 from asgrim/dep-updates
Dependency updates
2026-03-06 11:32:40 +00:00
James Titcumb
7fa3aa6e59 Bump actions/attest-build-provenance from 3 to 4
Bumps [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance) from 3 to 4.
- [Release notes](https://github.com/actions/attest-build-provenance/releases)
- [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md)
- [Commits](https://github.com/actions/attest-build-provenance/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/attest-build-provenance
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-06 10:43:40 +00:00
James Titcumb
608cdb2e3c Bump phpstan/phpstan from 2.1.38 to 2.1.40
---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-version: 2.1.40
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-06 10:42:12 +00:00
dependabot[bot]
730f3c2836 Bump actions/download-artifact from 7 to 8
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 7 to 8.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v7...v8)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-06 10:39:38 +00:00
dependabot[bot]
2796a0c1ad Bump actions/upload-artifact from 6 to 7
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-06 10:39:20 +00:00
James Titcumb
1fa74f04ad Merge pull request #526 from asgrim/435-prompt-to-install-missing-system-deps
435: prompt to install missing system deps
2026-03-06 10:30:12 +00:00
James Titcumb
e7053cb3e6 435: documentation improvements for 1.4.0 features 2026-03-06 09:23:36 +00:00
James Titcumb
3fb0c2443b 435: Added more system deps definitions 2026-03-06 08:25:50 +00:00
James Titcumb
606137190c 435: check system deps in pie build command 2026-03-05 11:57:21 +00:00
James Titcumb
4d3ec06e97 435: added flags to control system dependency scanning behaviour 2026-03-05 11:55:54 +00:00
James Titcumb
0c48a668a5 435: add tests for PrescanSystemDependencies 2026-03-05 11:28:12 +00:00
James Titcumb
e63b9c75ac 435: separate definition of system dependencies into configurable class 2026-03-05 09:27:10 +00:00
James Titcumb
076fddf53e 435: add phpstan-phpunit extension 2026-03-05 08:38:31 +00:00
James Titcumb
62bc6521f9 Fix filtering of InstalledPiePackages to exclude non-extensions
Note: baseline widened because of https://github.com/phpstan/phpstan/discussions/14228
2026-03-04 11:32:24 +00:00
James Titcumb
299903fd9d 435: added service to pre-scan for missing dependencies before installing an extension 2026-03-03 12:26:29 +00:00
James Titcumb
a41a1ab678 Add .noai to disable Jetbrains AI 2026-03-03 11:39:16 +00:00
James Titcumb
be8c76c4ca 435: add ->satisfied() helper method to DependencyStatus 2026-03-03 11:38:49 +00:00
James Titcumb
e87299846d 435: move PackageManager to Platform namespace 2026-03-02 11:21:49 +00:00
James Titcumb
b76b136769 435: extract fetching dependency status 2026-03-02 10:16:03 +00:00
James Titcumb
36fbea6e98 Merge branch '1.3.x' into 1.4.x 2026-03-02 09:13:17 +00:00
James Titcumb
9f845c2222 Merge pull request #519 from asgrim/517-change-pie-install-to-invoke-subcommand-for-interactivity
517: fix inability to provide sudo prompt when using "pie install" on a PHP project
1.3.9
2026-03-02 08:16:46 +00:00
James Titcumb
50644e72ca 517: fix inability to provide sudo prompt when using "pie install" on a PHP project
Previously, the `pie install` would invoke another instance of `pie`. However,
since this would always be run in a non-interactive shell, `sudo` prompts will
never work. I've changed this instead to use `InvokeSubCommand` which copies
the input params into the sub command, so it is all run in the same PIE process
and therefore retains the interactivity (or lack thereof) of the shell it was
invoked from.
2026-02-27 14:14:43 +00:00
James Titcumb
10c4971e3e Merge pull request #518 from php-win-ext/update_supported_extension
Add new PHP extensions to supported list
2026-02-25 17:13:15 +00:00
Jean-Baptiste Nahan
02316ffdaf Add new PHP extensions to supported list
Added new PHP extensions 'rar', 'sync', and 'varnish' to the supported extensions list.
2026-02-25 17:41:27 +01:00
James Titcumb
6e0bafdac7 Merge pull request #509 from asgrim/install-root-env-var
Prefix INSTALL_ROOT env var for UnixInstall
2026-02-25 08:07:22 +00:00
James Titcumb
62361e1d46 Prefix INSTALL_ROOT env var for UnixInstall 2026-02-24 11:38:56 +00:00
James Titcumb
682a10b9f1 Merge pull request #510 from asgrim/use-phpize-path-if-specified-for-tool-check
Fix checking for phpize when --with-phpize-path option given
2026-02-24 11:31:11 +00:00
James Titcumb
6985aad7a9 Merge pull request #516 from asgrim/contributing-templates
Contributing templates
2026-02-24 11:27:54 +00:00
James Titcumb
db110ff70c Fixes #514 disable Windows build 2026-02-24 10:27:45 +00:00
James Titcumb
2052bd38d4 Added CONTRIBUTING.md and PR template 2026-02-24 09:41:15 +00:00
James Titcumb
637a55d3da Rework PhpizePath to be passed to TargetPlatform 2026-02-12 13:54:51 +00:00
James Titcumb
adfe984c52 Merge pull request #508 from asgrim/fix-php-windows-builder-example-link
Fix broken anchor link for php-windows-builder examples
2026-02-10 10:13:20 +00:00
James Titcumb
9a5e529e0e Fix broken anchor link for php-windows-builder examples 2026-02-10 09:15:16 +00:00
James Titcumb
0bab5f714d Merge pull request #507 from asgrim/remove-xdebug-from-pre-packaged-binary-docs
Removed xdebug from pre-packaged-binary example docs to avoid confusion
2026-02-10 07:58:01 +00:00
James Titcumb
75ed282df3 Removed xdebug from pre-packaged-binary example docs to avoid confusion 2026-02-10 07:36:51 +00:00
James Titcumb
01964389a5 Merge pull request #489 from asgrim/436-prepackaged-binary-exts
436: pre-packaged binary exts
2026-02-09 17:45:03 +00:00
James Titcumb
1a13937bcb 436: bit of test and more useful exception message 2026-02-09 16:46:47 +00:00
James Titcumb
55f9985c48 436: improve documentation for download-url-methods 2026-02-09 14:53:26 +00:00
James Titcumb
ae7ae40b01 436: rm the existing extension before cp the new one
It seems that directly copying the new .so over the old one is slightly
different to rm the old .so then copying the new one. This fixes a segfault
that was observed when an existing ext was already in the ext directory. This
didn't manifest before, because `make install` (the approach used by compiling
from source) uses basically:

    $extSrcPath/build/shtool --debug install -c {$extSrcPath}modules/* $dest

This is a shell script, and ultimately it boils down to:

 - cp (or mv) the .so to a temp file in the dest path
 - rm the dest file
 - mv the temp file to the dest file

It was observed that this approach did not cause the segfault, but previous to
this commit, PIE was only doing:

 - cp the .so to the dest file

It seems there is some much lower-level differences in how these operations
affect the running processes, so this commit changes PIE to `rm` the target
file if it already exists first, which seems to solve the issue.
2026-02-06 17:29:42 +00:00
James Titcumb
531433d63c 436: check for prebuilt archive output in Behat test 2026-02-06 17:29:42 +00:00
James Titcumb
4149a469f7 436: update BuildCommand integration test to allow for pre-packaged-binaries 2026-02-06 17:29:42 +00:00
James Titcumb
77f42a0f56 436: updated to Composer 2.9.5 2026-02-06 17:29:42 +00:00
James Titcumb
bfd9b328eb 436: removed now-redundant downloadUrlMethod() tests (method was removed) 2026-02-06 17:29:42 +00:00
James Titcumb
ffc53357ef 436: download-url-methods should have at list one defined 2026-02-06 17:29:42 +00:00
James Titcumb
53c4c570af 436: detect bsdlibc on OSX 2026-02-06 17:29:42 +00:00
James Titcumb
97cd6c9def 436: include OS in pre-packaged-binary package names 2026-02-06 17:29:42 +00:00
James Titcumb
71ecfc5ea2 436: added a bunch of tests for pre-built binaries 2026-02-06 17:29:41 +00:00
James Titcumb
9c1eeee0e0 436: added OverrideDownloadUrlInstallListener test coverage for pre-packaged-binary and a bunch of tests to be implemented 2026-02-06 17:29:41 +00:00
James Titcumb
fbf0558c9d 436: fix up test expectations for pre-packaged binary DownloadUrlMethod 2026-02-06 17:29:41 +00:00