Is there no native "noop" callback function? It seems you have to define the noop function in this way each time you want to pass a noop callback.
<?php
/*
* no operation
* opcode number: 0
*/
function A(){};
?>
Function name: (null)
Compiled variables: none
line | # | op | fetch | ext | return | operands |
---|---|---|---|---|---|---|
6 | 0 | NOP | ||||
7 | 1 | RETURN | 1 |
Function name: A
Compiled variables: none
line | # | op | fetch | ext | return | operands |
---|---|---|---|---|---|---|
6 | 0 | RETURN | null |