Browse Source

inherit class may miss tailing \0

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1585 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
master
Xuefer 7 years ago
parent
commit
1163930d1b
  1. 4
      lib/Decompiler.class.php

4
lib/Decompiler.class.php

@ -2025,10 +2025,12 @@ class Decompiler
case XC_DECLARE_INHERITED_CLASS:
case XC_DECLARE_INHERITED_CLASS_DELAYED: // {{{
$key = $op1['constant'];
// missing tailing \0 (outside of the string)
$key = substr($key . ".", 0, strlen($key));
if (!isset($this->dc['class_table'][$key])) {
echo "class not found: ", $key, "\nexisting classes are:\n";
var_dump(array_keys($this->dc['class_table']));
exit;
break;
}
$class = &$this->dc['class_table'][$key];
if (!isset($class['name'])) {

Loading…
Cancel
Save