Browse Source

php dump op: check cli argument

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@343 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 15 years ago
parent
commit
7081e28e4d
  1. 3
      phpdop.phpr

3
phpdop.phpr

@ -87,6 +87,9 @@ function dump_class($name, $class, $indent = '')
}
}
if (!isset($argv[1])) {
die("Usage: $argv[0] <file>\n");
}
$pk = xcache_dasm_file($argv[1]);
$op_array = $funcs = $classes = null;
if (isset($pk['op_array'])) {

Loading…
Cancel
Save