(phpCode string)
| 20 | } |
| 21 | |
| 22 | func ExecutePHPCode(phpCode string) int { |
| 23 | // Ensure extensions are registered before CLI execution |
| 24 | registerExtensions() |
| 25 | |
| 26 | cCode := C.CString(phpCode) |
| 27 | defer C.free(unsafe.Pointer(cCode)) |
| 28 | return int(C.frankenphp_execute_script_cli(cCode, 0, nil, true)) |
| 29 | } |
no test coverage detected