Kévin Dunglas
ea042637e6
ci: add back ARMv6 build
2025-11-20 11:47:36 +01:00
Marc
0b74507945
don't upx pack on macos ( #2003 )
2025-11-20 10:19:27 +01:00
Kévin Dunglas
aa1bd23004
ci: use local sources when building with Bake
2025-11-20 05:48:40 +01:00
Marc
02f900bb97
we use "mac" for os-name, not "darwin" ( #2001 )
2025-11-19 22:11:23 +01:00
Vincent Amstoutz
56df2666e1
ci: add PHP 8.5 support for building images
2025-11-19 16:19:32 +01:00
Marc
1de9073e49
simplify build-static script ( #1968 )
...
* simplify build-static script
* we don't require go anymore, since spc will install it
* bring back eof newline
* move to frankenphp-os-arch again
* shell fmt
* Add FrankenPHP Caddy modules to build script
2025-11-19 15:30:00 +01:00
Kévin Dunglas
36062a0dce
feat(static): add XSL extension ( #1998 )
2025-11-19 14:55:53 +01:00
Kévin Dunglas
10cf2c4a2e
fix: use the global logger during classes preloading ( #1994 )
...
* fix: use the global logger during classes preloading
* better fix
* fix comparision
* Update frankenphp.go
2025-11-19 14:18:29 +01:00
Ahmet Türk
f224f8e391
docs: fix minor typo ( #1991 )
2025-11-18 14:29:25 +01:00
Alexander Stecher
0b2d3c913f
feat: per worker max threads ( #1962 )
...
* adds worker max_threads
* Adds tests for all calculation cases.
* Adds max_threads limitation to test.
* Removes the test sleep.
* Adds max_threads to error message.
* correctly uses continue.
* Fixes logic with only worker max_threads set.
* Adjust comments.
* Removes unnecessary check.
* Fixes comment.
* suggestions by @dunlgas.
* copilot suggestions.
* Renames logger.
* review
---------
Co-authored-by: Kévin Dunglas <kevin@dunglas.fr >
2025-11-18 11:55:29 +01:00
Kévin Dunglas
75a48e81a7
chore: bump deps
2025-11-18 11:48:59 +01:00
Alexandre Daubois
bd943f49de
feat(extgen): print gen_stub.php in case of failure
2025-11-18 11:10:03 +01:00
Alexandre Daubois
8f298ab060
fix(extgen): constant should be declared under the namespace provided by export_php:namespace
2025-11-18 10:40:59 +01:00
Kévin Dunglas
41cb2bbeaa
feat: mercure_publish() PHP function to dispatch Mercure updates ( #1927 )
...
* feat: mercure_publish() PHP function to dispatch Mercure updates
* fix stubs for old versions
* review
* cleanup and fixes
2025-11-18 09:59:53 +01:00
Marc
853cb67e95
shallow clone to save space in CI ( #1987 )
...
* shallow clone
* also remove source dir after building in CI
* formatting
* pass them through?
* only CI
* add as variable
2025-11-18 08:48:06 +01:00
Alexandre Daubois
eeb7d1a0c4
fix(extgen): only register ext_functions if functions are declared
2025-11-17 17:40:30 +01:00
Kévin Dunglas
8341cc98c6
refactor: rely on context.Context for log/slog and others ( #1969 )
...
* refactor: rely on context.Context for log/slog and others
* optimize
* refactor
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* fix watcher-skip
* better globals handling
* fix
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-17 16:32:23 +01:00
Alexandre Daubois
40cb42aace
chore: bump net
2025-11-17 15:09:30 +01:00
Alexandre Daubois
1e48fbb801
chore(docs): catch-up french translation ( #1978 )
2025-11-17 12:07:38 +01:00
Alexandre Daubois
4e6d67e0b4
fix(extgen): don't remove everything in the build directory now that there's no build subdir
2025-11-14 15:13:54 +01:00
Alexandre Daubois
18946308fd
docs: remove superfluous arg in an example ( #1972 )
2025-11-14 15:12:56 +01:00
Alexandre Daubois
f7298557aa
feat(extgen): automatically add "runtime/cgo" to the imports if necessary
2025-11-14 15:12:28 +01:00
Alexandre Daubois
861b345b05
fix(extgen): replace any by interface{} in the generated go file when dealing with handles
2025-11-14 14:54:40 +01:00
Kévin Dunglas
724c0b11ca
feat: set a custom Server header
...
# Conflicts:
# caddy/module.go
# frankenphp.go
2025-11-10 17:25:22 +01:00
dependabot[bot]
63168e087e
ci: bump golangci/golangci-lint-action in the github-actions group
...
Bumps the github-actions group with 1 update: [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ).
Updates `golangci/golangci-lint-action` from 8 to 9
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v8...v9 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-version: '9'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-10 17:24:24 +01:00
Kévin Dunglas
6225da9c18
refactor: improve ExtensionWorkers API ( #1952 )
...
* refactor: improve ExtensionWorkers API
* Update workerextension.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update workerextension.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update caddy/app.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* review
* fix tests
* docs
* errors
* improved error handling
* fix race
* add missing return
* use %q in Errorf
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-10 14:12:14 +01:00
Alexander Stecher
407ef09ac3
fix: fail immediately on missing worker file ( #1963 )
2025-11-10 09:23:50 +01:00
Marc
bf4c9fe986
fix test typo ( #1964 )
...
* Fix typo in TestFlushEmptyResponse_worker function
* Fix test function name for flush empty response
2025-11-08 08:28:56 +01:00
Marc
b22bdd987b
update docs to remove old references to frankenphp:static-builder ( #1950 )
...
* update docs to remove old references to frankenphp:static-builder (we have -musl and -gnu)
* remove --platform and make gnu default
* add --platform back in (let dunglas decide)
* fix missed translations
2025-11-07 10:27:37 +01:00
Alexandre Daubois
28d17b39dc
chore: bump GitHub Action deps ( #1957 )
2025-11-04 08:52:23 +01:00
Marc
264f92835d
bring back logic for workers to inherit php_server parent environment ( #1956 )
...
* bring back logic to inherit php_server parent environment
* change order to account for
php {
worker file.php 1 {
}
}
cases
* suggestion
* add inherit env test
2025-11-02 14:50:50 +01:00
Alexandre Daubois
b49aed1934
chore: bump deps
2025-10-31 16:51:26 +01:00
Kévin Dunglas
4d0fb7d0f8
refactor: simplify Init()
2025-10-29 23:14:46 +01:00
Marc
5447a7a6c8
add compile from sources fallback to unsupported OS message ( #1939 )
...
* add compile from sources fallback to unsupported OS message
* rewrite message to indicate general support, but no precompiled binaries
* add logs to build-static
2025-10-29 19:25:51 +01:00
Alexander Stecher
1270784cd3
suggestion: external worker api ( #1928 )
...
* Cleaner request apis.
2025-10-29 11:36:33 +01:00
Kévin Dunglas
9b8d215727
refactor: improve Worker public API and docs
2025-10-29 11:36:33 +01:00
Alexandre Daubois
94e58eb215
fix: replace file_put_contents() by file_get_contents() in Mercure docs
2025-10-28 15:00:43 +01:00
Alexander Stecher
bf6e6534f6
fix: exit() and dd() support in worker mode ( #1946 )
...
* Verifies exit behavior.
* formatting
* Checks for actual exit.
* Fixes test.
* Fixes test.
* Update testdata/dd.php
Co-authored-by: Kévin Dunglas <kevin@dunglas.fr >
---------
Co-authored-by: Kévin Dunglas <kevin@dunglas.fr >
2025-10-28 10:57:50 +01:00
Michal Kleiner
fb1f46808e
fix: typo in method name in example usage ( #1935 )
2025-10-22 09:14:36 +02:00
Florent Drousset
7f64673495
Fix small typo ( #1934 )
2025-10-21 17:50:00 +02:00
Kévin Dunglas
f7756717b5
feat: allow creating strongly typed slices and maps from PHP values with type utilities ( #1933 )
...
* feat: use generics in type functions for better type support
* various improvements
* better docs
* update docs
2025-10-21 11:20:54 +02:00
Damien Calesse
9aee496b96
Add patchelf installation in static-gnu Dockerfile ( #1899 )
...
* Add patchelf installation in static-gnu Dockerfile
* reduce static-builder-gnu.Dockerfile layers
---------
Co-authored-by: henderkes <m@pyc.ac >
2025-10-20 18:08:40 +02:00
Alexander Stecher
45823c51b2
fix: catches panic on invalid status code ( #1920 )
2025-10-16 11:35:35 +02:00
Kévin Dunglas
f8ea48c3b1
chore(caddy): better error handling
2025-10-15 11:12:34 +02:00
Laury S.
1fbd619597
fix: remove BOM on config fr doc file ( #1924 )
2025-10-14 17:50:51 +02:00
Kévin Dunglas
d52ce94341
docs: improve Mercure documentation and various other parts
2025-10-14 14:32:38 +02:00
Kévin Dunglas
b749f52ae5
chore: simplify string using backticks
...
# Conflicts:
# internal/extgen/classparser.go
# internal/extgen/gofile_test.go
2025-10-14 14:09:17 +02:00
Kévin Dunglas
e917ab7974
fix: callback parameters handling in worker extensions
2025-10-09 15:42:29 +02:00
Kévin Dunglas
5514491a18
feat(extgen): support for mixed type ( #1913 )
...
* feat(extgent): support for mixed type
* refactor: use unsafe.Pointer
* Revert "refactor: use unsafe.Pointer"
This reverts commit 8a0b9c1beb .
* fix docs
* fix docs
* cleanup template
* fix template
* fix tests
2025-10-09 14:10:45 +02:00
Kévin Dunglas
c42d287138
refactor: extension worker ( #1910 )
...
* refactor: extension worker
* feat: optional HTTP request
* allow passing unsafe.Pointer to the extension callback
* lint
* simplify
2025-10-09 14:10:09 +02:00