1
0
Fork 0
mirror of https://github.com/laravel-ls/go-php synced 2026-06-18 13:00:02 +02:00

Initial commit

This commit is contained in:
Henrik Hautakoski 2025-11-02 07:55:45 +01:00
commit 4cbf7e62b7
19 changed files with 1295 additions and 0 deletions

8
compile.c Normal file
View file

@ -0,0 +1,8 @@
#include <Zend/zend_compile.h>
zend_op_array* compile(char *code) {
zend_string *code_str = zend_string_init(code, strlen(code), 0);
zend_op_array *op_array = zend_compile_string(code_str, "", ZEND_COMPILE_POSITION_AT_OPEN_TAG);
zend_string_release(code_str);
return op_array;
}