Commit Graph

931 Commits

Author SHA1 Message Date
Alliballibaba
fd40e62cb8 cleanup. 2025-10-26 21:25:19 +01:00
Alliballibaba
acf423f9f0 adds comments. 2025-10-26 20:57:00 +01:00
Alliballibaba
02c27fc2a9 Fixes library tests. 2025-10-26 20:56:08 +01:00
Alliballibaba
d54f736db7 simplifications 2025-10-26 20:52:19 +01:00
Alliballibaba
694b6188c0 Formatting. 2025-10-26 20:39:31 +01:00
Alliballibaba
b275cd58f8 Merge branch 'main' into feat/task-threads
# Conflicts:
#	types_test.go
2025-10-26 20:24:42 +01:00
Alliballibaba
3f63a4d137 Combines frankenphp_handle_task() and frankenphp_handle_request(). 2025-10-26 20:21:19 +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
Alliballibaba
e801a49f3f Prevents test race condition. 2025-10-11 23:36:57 +02:00
Alliballibaba
12b6aaeac6 Prevents test race condition. 2025-10-11 23:36:48 +02:00
Alliballibaba
a5a9351020 Adds sleep back in. 2025-10-11 23:29:13 +02:00
Alliballibaba
03d886d32e Removes more code. 2025-10-11 23:23:58 +02:00
Alliballibaba
8144a06ebb clang-format. 2025-10-11 22:55:31 +02:00
Alliballibaba
8a5d489c85 Returns error messages directly to PHP. 2025-10-11 22:53:44 +02:00
Alliballibaba
6b9c236d9a Removes docs (still experimental) 2025-10-11 22:41:15 +02:00
Alliballibaba
02a3b3f56d Fixes build error. 2025-10-11 22:38:51 +02:00
Alliballibaba
117b415e8b Merge branch 'main' into feat/task-threads 2025-10-11 22:37:20 +02:00
Alliballibaba
7565628516 Allows setting queue len. 2025-10-11 22:21:02 +02:00
Alliballibaba
05bf065a1b Uses goValue and phpValue for task dispatching. 2025-10-11 22:13:03 +02:00
Alliballibaba
58d1761fe8 Simplifies by removing args. 2025-10-11 21:11:14 +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
SpencerMalone
1f6f768c97 fix: release but don't free CLI streams when executing cli scripts (#1906)
* Bring upstream commit 0a4a55fd44 into cli_register_file_handles to release but not free stdout/in/err.

Fixes being unable to log to stdout or error after using frankenphp.ExecutePHPCode

* chore: clang-format

---------

Co-authored-by: Kévin Dunglas <kevin@dunglas.fr>
2025-10-08 17:07:54 +02:00
Kévin Dunglas
a4596b7767 ci: fix Biome linter issue (#1911) 2025-10-08 08:38:00 +02:00
Alliballibaba
b23f3f833e Foxes pinning. 2025-10-07 22:20:27 +02:00
Alliballibaba
268d294313 Fixes pinning. 2025-10-07 21:29:29 +02:00
Alliballibaba
77fec2b4a7 Adds docs. 2025-10-07 21:23:40 +02:00
Alliballibaba
df7e77d3a6 Adjusts naming. 2025-10-07 21:08:16 +02:00
Alliballibaba
0dff2a2790 Adjusts naming. 2025-10-07 21:04:32 +02:00
Alliballibaba
0c0a0cb19b Adds more tests. 2025-10-07 20:39:54 +02:00
Rob Landers
fa3a7032a4 refactor: make Worker an embeddable struct (#1884)
* make WorkerExtension embeddable

Signed-off-by: Robert Landers <landers.robert@gmail.com>

* change names

Signed-off-by: Robert Landers <landers.robert@gmail.com>

---------

Signed-off-by: Robert Landers <landers.robert@gmail.com>
2025-10-07 16:56:56 +02:00
Filippo Tessarotto
ab1ec71d24 docs(worker): Prefer try-catch over set_exception_handler (#1897) 2025-10-06 09:01:49 +02:00
Alliballibaba
99bb21f646 Allows setting args with task-workers. 2025-10-05 11:33:19 +02:00
Alliballibaba
b8addd76e7 Merge branch 'main' into feat/task-threads 2025-10-01 22:56:25 +02:00
dependabot[bot]
219a5407ff chore: bump the go-modules group with 2 updates (#1903) 2025-09-29 17:56:28 +02:00
Marc
76511c2e19 fix(packages): frankenphp trust failing because admin API isn't started #1846 (#1870) 2025-09-27 15:50:29 +02:00
Alexandre Daubois
7668a27d4b chore: bump /caddy sub-group deps (#1863) 2025-09-23 10:26:13 +02:00
Alliballibaba
639817ebef Merge branch 'main' into feat/task-threads
# Conflicts:
#	worker.go
2025-09-22 21:06:16 +02:00
Artur Melanchyk
e4c1801c25 fix: added missing decrement for the "ready" WaitGroup counter (#1890)
Co-authored-by: Artur Melanchyk <13834276+arturmelanchyk@users.noreply.github.com>
2025-09-22 19:57:01 +02:00
Alliballibaba
9c36ed4624 Merge branch 'main' into feat/task-threads 2025-09-20 22:28:10 +02:00
Alliballibaba
83c7a88ec7 Cleanup. 2025-09-20 22:27:30 +02:00