附录*PHP的ticks机制
$name = "phppan";
echo $name;
class Tipi {
public function test() {
echo "test";
}
}
function f_tipi() {
}Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename: /home/revin/work/code/test/1.php
function name: (null)
number of ops: 7
compiled vars: !0 = $name
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
2 0 E > EXT_STMT
1 ASSIGN !0, 'phppan'
3 2 EXT_STMT
3 ECHO !0
4 4 EXT_STMT
9 5 EXT_STMT
10 6 > RETURN 1
branch: # 0; line: 2- 10; sop: 0; eop: 6; out1: -2
path #1: 0,
Function f_tipi:
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename: /home/revin/work/code/test/1.php
function name: f_tipi
number of ops: 3
compiled vars: none
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
9 0 E > EXT_NOP
10 1 EXT_STMT
2 > RETURN null
branch: # 0; line: 9- 10; sop: 0; eop: 2; out1: -2
path #1: 0,
End of function f_tipi
Class Tipi:
Function test:
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename: /home/revin/work/code/test/1.php
function name: test
number of ops: 5
compiled vars: none
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
5 0 E > EXT_NOP
6 1 EXT_STMT
2 ECHO 'test'
7 3 EXT_STMT
4 > RETURN null
branch: # 0; line: 5- 7; sop: 0; eop: 4; out1: -2
path #1: 0,
End of function test
End of class Tipi.
phppan声明ticks机制过程
声明控制语句
ticks机制的应用场景
资料
Last updated