php dump op: check cli argument
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@343 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
parent
65282d6051
commit
7081e28e4d
|
@ -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…
Reference in New Issue