1
0
Fork 0

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:
Xuefer 2007-02-04 06:18:39 +00:00
parent 65282d6051
commit 7081e28e4d
1 changed files with 3 additions and 0 deletions

View File

@ -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'])) {