(PECL uopz 5)
uopz_allow_exit — Allows control over disabled exit opcode
$allow
)By default uopz disables the exit opcode, so exit() calls are practically ignored. uopz_allow_exit() allows to control this behavior.
allow
Whether to allow the execution of exit opcodes or not.
Es wird kein Wert zurückgegeben.
Beispiel #1 uopz_allow_exit() example
<?php
exit(1);
echo 1;
uopz_allow_exit(true);
exit(2);
echo 2;
?>
Das oben gezeigte Beispiel erzeugt folgende Ausgabe:
1
OPcache optimizes away dead code after unconditional exit.
Hinweis: Da dies ein Sprachkonstrukt und keine Funktion ist, können Sie dieses nicht mit Variablenfunktionen verwenden.
Diese Funktion ist (bis jetzt) nicht binary safe!
Hinweis: register_globals: Wichtiger Hinweis
Seit PHP 4.2.0 ist die Standardeinstellung für die Konfigurationsoption register_globals off. Die PHP-Community ermutigt alle, sich nicht auf diese Option zu verlassen und Alternativen wie superglobals zu verwenden.