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(){};
?>
関数名: (null)
コンパイルされた変数: none
line | # | op | fetch | ext | return | operands |
---|---|---|---|---|---|---|
6 | 0 | NOP | ||||
7 | 1 | RETURN | 1 |
関数名: A
コンパイルされた変数: none
line | # | op | fetch | ext | return | operands |
---|---|---|---|---|---|---|
6 | 0 | RETURN | null |