Changeset 798


Ignore:
Timestamp:
2011-04-26T10:05:18+02:00 (3 years ago)
Author:
moo
Message:

fix build: ISREF undefined in <=PHP_5_2

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r781 r798  
    28842884    } 
    28852885 
    2886     RETURN_LONG(Z_REFCOUNT_P(variable)); 
     2886    RETURN_LONG(Z_REFCOUNT(*variable)); 
    28872887} 
    28882888/* }}} */ 
     
    29002900    } 
    29012901 
    2902     RETURN_BOOL(Z_ISREF_P(variable) && Z_REFCOUNT_P(variable) >= 3); 
     2902    RETURN_BOOL(Z_ISREF(*variable) && Z_REFCOUNT(*variable) >= 3); 
    29032903} 
    29042904/* }}} */ 
  • trunk/xcache.h

    r770 r798  
    5454#   define ALLOCA_FLAG(x) 
    5555#endif 
     56#ifndef Z_ISREF 
     57#   define Z_ISREF(z) (z).is_ref 
     58#endif 
    5659#ifndef Z_SET_ISREF 
    5760#   define Z_SET_ISREF(z) (z).is_ref = 1 
     
    5962#ifndef Z_UNSET_ISREF 
    6063#   define Z_UNSET_ISREF(z) (z).is_ref = 0 
     64#endif 
     65#ifndef Z_REFCOUNT 
     66#   define Z_REFCOUNT(z) (z).refcount 
    6167#endif 
    6268#ifndef Z_SET_REFCOUNT 
Note: See TracChangeset for help on using the changeset viewer.