minify embed script

This commit is contained in:
henderkes
2026-04-16 18:06:27 +07:00
parent 2073652744
commit f57986ccbf

View File

@@ -1,17 +1,12 @@
#include <sapi/embed/php_embed.h> #include <sapi/embed/php_embed.h>
int main(int argc, char **argv) { int main(int argc, char **argv) {
PHP_EMBED_START_BLOCK(argc, argv) PHP_EMBED_START_BLOCK(argc, argv)
zend_file_handle file_handle; zend_file_handle file_handle;
zend_stream_init_filename(&file_handle, "embed.php"); zend_stream_init_filename(&file_handle, "embed.php");
if(!php_execute_script(&file_handle)) { if(!php_execute_script(&file_handle)) {
php_printf("Failed to execute PHP script.\n"); php_printf("Failed to execute PHP script.\n");
} }
PHP_EMBED_END_BLOCK() PHP_EMBED_END_BLOCK()
return 0; return 0;
} }