Changeset 1374 in svn for trunk/lib/Decompiler.class.php


Ignore:
Timestamp:
2013-09-16T15:48:48Z (2 years ago)
Author:
Xuefer
Message:

Decompiler: fixes #318 (support for const in static array index/value)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Decompiler.class.php

    r1343 r1374  
    9090function value($value, &$EX) // {{{
    9191{
    92     $spec = xcache_get_special_value($value);
    93     if (isset($spec)) {
    94         $value = $spec;
    95         if (!is_array($value)) {
     92    $originalValue = xcache_get_special_value($value);
     93    if (isset($originalValue)) {
     94        if ((xcache_get_type($value) & IS_CONSTANT_TYPE_MASK) == IS_CONSTANT) {
    9695            // constant
    97             return $GLOBALS['__xcache_decompiler']->stripNamespace($value);
    98         }
     96            return $GLOBALS['__xcache_decompiler']->stripNamespace($originalValue);
     97        }
     98
     99        $value = $originalValue;
    99100    }
    100101
Note: See TracChangeset for help on using the changeset viewer.