← All docs
opcache_invalidate() - internals
Compiler internals for opcache_invalidate(): lowering path, type checks, and runtime helpers.
opcache_invalidate() - internals
Where it lives
- Signature:
crates/elephc-builtin-contract/src/catalog_data.rs - Lowering:
src/opcache_prelude/build.rs:849 (opcache_invalidate) - Function symbol:
opcache_invalidate()
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_invalidate(mixed $filename, mixed $force = false): bool
What the type checker enforces
- Arity: takes 1–2 arguments (1 optional).
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.