Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 175c2b9a087820b7ba1566464bf57649 > files > 1

php-funcall-0.2.5-11mdv2010.1.src.rpm

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