PHP - Manual: SEND_VAL
2024-12-27
<?php
/*
* Pass the constant value as an actual parameter to a function. DO_FCALL follows.
* opcode number: 65
*/
function funcA($msg){
print $msg;
}
funcA('HELLO');
defined('IN_PHPBB');
?>
Function name: (null)
Compiled variables: none
line | # | op | fetch | ext | return | operands |
---|---|---|---|---|---|---|
6 | 0 | NOP | ||||
10 | 1 | SEND_VAL | 'HELLO' | |||
2 | DO_FCALL | 1 | 'funca' | |||
12 | 3 | SEND_VAL | 'IN_PHPBB' | |||
4 | DO_FCALL | 1 | 'defined' | |||
13 | 5 | RETURN | 1 |
Function name: funcA
Compiled variables: !0=$msg
line | # | op | fetch | ext | return | operands |
---|---|---|---|---|---|---|
6 | 0 | RECV | 1 | |||
7 | 1 | ~0 | !0 | |||
2 | FREE | ~0 | ||||
8 | 3 | RETURN | null |
官方地址:https://www.php.net/manual/en/internals2.opcodes.send-val.php