Skip to content

Instantly share code, notes, and snippets.

@srgoogleguy
Created December 1, 2012 06:56
Show Gist options
  • Save srgoogleguy/4180889 to your computer and use it in GitHub Desktop.
Save srgoogleguy/4180889 to your computer and use it in GitHub Desktop.
Output from vld
<?php
class C extends B {}
class B extends A {}
class A {}
Finding entry points
Branch analysis from position: 0
Add 0
Add 1
Add 2
Add 3
Add 4
Add 5
Return found
filename: /tmp/tests/6.php
function name: (null)
number of ops: 6
compiled vars: none
line # * op fetch ext return operands
---------------------------------------------------------------------------------
2 0 > ZEND_FETCH_CLASS 4 RES[ :0 ] OP2[ IS_CONST (51092802) 'B' ]
1 ZEND_DECLARE_INHERITED_CLASS RES[ IS_VAR $1 ] OP1[ IS_CONST (51092805) '%00c%2Ftmp%2Ftests%2F6.php0x7f2361770018' ] OP2[ , IS_CONST (51092806) 'c' ]
3 2 ZEND_FETCH_CLASS 4 RES[ :2 ] OP2[ IS_CONST (51092807) 'A' ]
3 ZEND_DECLARE_INHERITED_CLASS RES[ IS_VAR $3 ] OP1[ IS_CONST (51092810) '%00b%2Ftmp%2Ftests%2F6.php0x7f236177002d' ] OP2[ , IS_CONST (51092811) 'b' ]
4 4 NOP
6 5 > RETURN OP1[ IS_CONST (51092814) 1 ]
branch: # 0; line: 2- 6; sop: 0; eop: 5
path #1: 0,
Class C: [no user functions]
Class B: [no user functions]
Class A: [no user functions]
PHP Fatal error: Class 'B' not found in /tmp/tests/6.php on line 2
Fatal error: Class 'B' not found in /tmp/tests/6.php on line 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment