mirror of
https://github.com/php/frankenphp.git
synced 2026-04-24 01:08:08 +02:00
abfd893d88
* 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>
27 lines
1.1 KiB
C
27 lines
1.1 KiB
C
#include <php.h>
|
|
#include <zend_exceptions.h>
|
|
|
|
#include "_cgo_export.h"
|
|
|
|
zend_module_entry module1_entry = {STANDARD_MODULE_HEADER,
|
|
"ext1",
|
|
NULL, /* Functions */
|
|
NULL, /* MINIT */
|
|
NULL, /* MSHUTDOWN */
|
|
NULL, /* RINIT */
|
|
NULL, /* RSHUTDOWN */
|
|
NULL, /* MINFO */
|
|
"0.1.0",
|
|
STANDARD_MODULE_PROPERTIES};
|
|
|
|
zend_module_entry module2_entry = {STANDARD_MODULE_HEADER,
|
|
"ext2",
|
|
NULL, /* Functions */
|
|
NULL, /* MINIT */
|
|
NULL, /* MSHUTDOWN */
|
|
NULL, /* RINIT */
|
|
NULL, /* RSHUTDOWN */
|
|
NULL, /* MINFO */
|
|
"0.1.0",
|
|
STANDARD_MODULE_PROPERTIES};
|