--- funcall.c 2008-11-24 17:05:12.000000000 +0100 +++ funcall.c.oden 2008-12-27 04:51:52.000000000 +0100 @@ -402,9 +402,13 @@ static zval *fc_get_zval_ptr_var(znode * ptr->value.str.val = estrndup(&c, 1); ptr->value.str.len = 1; } - PZVAL_UNLOCK_FREE(str); - ptr->refcount=1; +#if ZEND_MODULE_API_NO >= 20071006 + ptr->is_ref__gc=1; + ptr->refcount__gc=1; +#else ptr->is_ref=1; + ptr->refcount=1; +#endif ptr->type = IS_STRING; return ptr; }