Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
indeyets committed Jun 2, 2008
1 parent 71d18a2 commit 1941139
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext/php/phpext.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
#include <ext/standard/info.h>
#include "php_syck.h"

#ifndef Z_SET_REFCOUNT_P
# define Z_SET_REFCOUNT_P(x, y) (x)->refcount = (y)
#endif

#ifndef true
# define true 1
# define false 0
Expand Down Expand Up @@ -606,11 +610,7 @@ void php_syck_ehandler(SyckParser *p, const char *str)

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);

#if ZEND_MODULE_API_NO >= 20071006
Z_SET_REFCOUNT_P(exc, 2);
#else
exc->refcount = 2; // hack
#endif

st_foreach(p->syms, my_cleaner, NULL);
}
Expand Down

0 comments on commit 1941139

Please sign in to comment.