From ada97f80370d7e3d6bc98c942fbc0fa59d82212d Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Sun, 26 Feb 2012 22:15:33 +0000 Subject: [PATCH] Fixed compilation with ZTS on PHP < 5.3 --- xdebug_var.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xdebug_var.c b/xdebug_var.c index ef5c03edc..9d5d93121 100644 --- a/xdebug_var.c +++ b/xdebug_var.c @@ -687,6 +687,9 @@ void xdebug_attach_static_var_with_contents(zval **zv XDEBUG_ZEND_HASH_APPLY_TSR char *class_name; char *prop_name, *prop_class_name; xdebug_var_export_options *options; +#if !defined(PHP_VERSION_ID) || PHP_VERSION_ID < 50300 + TSRMLS_FETCH(); +#endif node = va_arg(args, xdebug_xml_node *); options = va_arg(args, xdebug_var_export_options *);