Alexandre Daubois
c6b2b02277
fix(extgen): correctly handle const blocks to declare iota constants ( #2086 )
...
While continuing the work on #2011 , I realized that constant
declarations have a problem when using `iota`. I mean, it technically
works, but const *blocks* we not supported which means that setting all
constants to `iota` as shown in the documentation was non-sensical, as
`iota` resets every time outside of const blocks.
So, this is between the bug fix and the feature. To me, it's a bug fix
as the behavior wasn't the one intended when creating extgen.
2026-01-12 15:44:46 +01: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
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
Alexandre Daubois
34fbfd467b
chore(extgen): remove useless constructors
2025-07-16 12:06:23 +02:00
Alexandre Daubois
8df41236d9
feat(extgen): add support for arrays as parameters and return types ( #1724 )
...
* feat(extgen): add support for arrays as parameters and return types
* cs
---------
Co-authored-by: Kévin Dunglas <kevin@dunglas.fr >
2025-07-16 12:05:29 +02:00
Kévin Dunglas
abfd893d88
feat: FrankenPHP extensions ( #1651 )
...
* feat: add helpers to create PHP extensions (#1644 )
* feat: add helpers to create PHP extensions
* cs
* feat: GoString
* test
* add test for RegisterExtension
* cs
* optimize includes
* fix
* feat(extensions): add the PHP extension generator (#1649 )
* feat(extensions): add the PHP extension generator
* unexport many types
* unexport more symbols
* cleanup some tests
* unexport more symbols
* fix
* revert types files
* revert
* add better validation and fix templates
* remove GoStringCopy
* small fixes
---------
Co-authored-by: Kévin Dunglas <kevin@dunglas.fr >
* try to fix tests
* fix CS
* try some workarounds
* try some workarounds
* ingore TestRegisterExtension
* exclude cgo tests in Docker images
* fix
* workaround...
* race detector
* simplify tests and code
* make linter happy
* feat(gofile): use templates to generate the Go file (#1666 )
---------
Co-authored-by: Alexandre Daubois <2144837+alexandre-daubois@users.noreply.github.com >
2025-06-25 10:18:22 +02:00