Changeset 1374 for trunk/xcache.c


Ignore:
Timestamp:
2013-09-16T17:48:48+02:00 (12 months ago)
Author:
moo
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r1346 r1374  
    351351 
    352352    default: 
    353         RETURN_NULL(); 
     353        if ((Z_TYPE_P(value) & ~IS_CONSTANT_TYPE_MASK)) { 
     354            *return_value = *value; 
     355            zval_copy_ctor(return_value); 
     356            return_value->type &= IS_CONSTANT_TYPE_MASK; 
     357        } 
     358        else { 
     359            RETURN_NULL(); 
     360        } 
    354361    } 
    355362} 
Note: See TracChangeset for help on using the changeset viewer.