diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-05 20:12:41 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-05 20:52:56 +0900 |
| commit | c7941d027be068f6e563a17e882232580fe15334 (patch) | |
| tree | 40479fdff8903af289f8a2a02c6f58ba1c69a82c /worker/php-wasm.c | |
| parent | 0f91e938442b22e54ba2f1b29e25d678cf0acdd3 (diff) | |
| download | phperkaigi-2026-albatross-c7941d027be068f6e563a17e882232580fe15334.tar.gz phperkaigi-2026-albatross-c7941d027be068f6e563a17e882232580fe15334.tar.zst phperkaigi-2026-albatross-c7941d027be068f6e563a17e882232580fe15334.zip | |
feat(worker): move directory worker/ to worker/php/
Diffstat (limited to 'worker/php-wasm.c')
| -rw-r--r-- | worker/php-wasm.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/worker/php-wasm.c b/worker/php-wasm.c deleted file mode 100644 index 9c71ca1..0000000 --- a/worker/php-wasm.c +++ /dev/null @@ -1,22 +0,0 @@ -#include <stdio.h> -#include <emscripten.h> -#include <Zend/zend_execute.h> -#include <sapi/embed/php_embed.h> - -int EMSCRIPTEN_KEEPALIVE php_wasm_run(const char* code) { - zend_result result; - - int argc = 1; - char* argv[] = { "php.wasm", NULL }; - - PHP_EMBED_START_BLOCK(argc, argv); - - result = zend_eval_string_ex(code, NULL, "php.wasm code", 1); - - PHP_EMBED_END_BLOCK(); - - fflush(stdout); - fflush(stderr); - - return result == SUCCESS ? 0 : 1; -} |
