From 2ba9c1223aadcf4f9d517b86de4d71258578b1c9 Mon Sep 17 00:00:00 2001 From: Xuefer Date: Mon, 12 Aug 2013 08:21:09 +0000 Subject: [PATCH] Decompiler: strip namespace in const array git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1342 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- lib/Decompiler.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Decompiler.class.php b/lib/Decompiler.class.php index cec6852..402cf93 100644 --- a/lib/Decompiler.class.php +++ b/lib/Decompiler.class.php @@ -94,7 +94,7 @@ function value($value, &$EX) // {{{ $value = $spec; if (!is_array($value)) { // constant - return $value; + return $GLOBALS['__xcache_decompiler']->stripNamespace($value); } } @@ -519,6 +519,7 @@ class Decompiler function Decompiler() { + $GLOBALS['__xcache_decompiler'] = $this; // {{{ testing // XC_UNDEF XC_OP_DATA $this->test = !empty($_ENV['XCACHE_DECOMPILER_TEST']);