← All docs
opcache_compile_file() - internals
Compiler internals for opcache_compile_file(): lowering path, type checks, and runtime helpers.
opcache_compile_file() - internals
Where it lives
- Signature:
crates/elephc-builtin-contract/src/catalog_data.rs - Lowering:
src/opcache_prelude/build.rs:956 (opcache_compile_file) - Function symbol:
opcache_compile_file()
Lowering notes
- Implemented by the compiler-injected OPcache prelude.
Semantic descriptor
Shared contract implemented by an injected elephc-PHP prelude.
EIR and runtime boundary
Implemented by an injected elephc-PHP prelude.
Signature summary
function opcache_compile_file(mixed $filename): bool
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
Calls prefer the program’s native OPcache prelude declarations, which carry the configured directives, live cache, and API restrictions. Dedicated interpreter handlers cover programs without those declarations (crates/elephc-magician/src/interpreter/builtins/registry/dispatch/mod.rs). This route does not use an eval_builtin! binding.