Changeset 323 for trunk

Show
Ignore:
Timestamp:
06/02/2008 07:52:52 (6 months ago)
Author:
indeyets
Message:

cleanup

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ext/php/phpext.c

    r322 r323  
    3232#include "php_syck.h" 
    3333 
     34#ifndef Z_SET_REFCOUNT_P 
     35# define Z_SET_REFCOUNT_P(x, y) (x)->refcount = (y) 
     36#endif 
     37 
    3438#ifndef true 
    3539# define true 1 
     
    607611        exc = zend_throw_exception_ex(syck_exception_entry, 0 TSRMLS_CC, "%s on line %d, col %d: '%s'", str, p->linect + 1, p->cursor - p->lineptr, p->lineptr); 
    608612 
    609 #if ZEND_MODULE_API_NO >= 20071006 
    610613        Z_SET_REFCOUNT_P(exc, 2); 
    611 #else 
    612         exc->refcount = 2; // hack 
    613 #endif 
    614614 
    615615        st_foreach(p->syms, my_cleaner, NULL);