uopz_allow_exit
uopz_allow_exit
Allows control over disabled exit opcode
void **uopz_allow_exit** bool $allow
By default uopz disables the exit opcode, so calls
are practically ignored.
allows to control this behavior.
exit``uopz_allow_exit
allowWhether to allow the execution of exit opcodes or not.
return.void
Voorbeeld: example
<?php
exit(1);
echo 1;
uopz_allow_exit(true);
exit(2);
echo 2;
?>
1
Let op: > optimizes away dead code after unconditional exit. OPcache
uopz_get_exit_status