From f28ea3269ba6b6bcf57c2ec3f853771c038eb155 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 27 Jun 2007 12:48:44 +0000 Subject: [PATCH] fix ZTS build --- Zend/zend_operators.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 50ed7b011bf..a8de2705c40 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -2274,6 +2274,8 @@ static void increment_unicode(zval *str) int ch; if (Z_USTRLEN_P(str) == 0) { + TSRMLS_FETCH(); + USTR_FREE(Z_USTRVAL_P(str)); ZVAL_ASCII_STRINGL(str, "1", sizeof("1")-1, 1); return;