SEND_VAL

PHP code

<?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');
?>

PHP opcodes

Function name: (null)

Compiled variables: none

line#op fetchextreturn operands
60 NOP      
101 SEND_VAL     'HELLO'
 2 DO_FCALL  1  'funca'
123 SEND_VAL     'IN_PHPBB'
 4 DO_FCALL  1  'defined'
135 RETURN     1

Function name: funcA

Compiled variables: !0=$msg

line#op fetchextreturn operands
60 RECV     1
71 PRINT   ~0 !0
 2 FREE     ~0
83 RETURN     null
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top