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:
commit
4cbf7e62b7
19 changed files with 1295 additions and 0 deletions
8
compile.c
Normal file
8
compile.c
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue