uopz_overload

Overload a VM opcode

Beschreibung

void uopz_overload ( int $opcode , Callable $callable )

Overloads the specified opcode with the user defined function

Parameter-Liste

opcode

A valid opcode, see constants for details of supported codes

callable

Rückgabewerte

Beispiele

Beispiel #1 uopz_overload example

<?php
uopz_overload
(ZEND_EXIT, function(){});

exit();
echo 
"Hello World";
?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

Hello World