From: Antony Dovgal Date: Wed, 27 May 2009 09:57:13 +0000 (+0000) Subject: fix build X-Git-Tag: php-5.2.10RC1~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3197576f2cf1f9211c2e9089e9a0dbf81a74ab7a;p=php fix build --- diff --git a/ext/curl/interface.c b/ext/curl/interface.c index be3781f1ca..e09905433f 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -2061,7 +2061,7 @@ static void _php_curl_close_ex(php_curl *ch TSRMLS_DC) #endif /* Prevent crash inside cURL if passed file has already been closed */ - if (ch->handlers->stderr && Z_REFCOUNT_P(ch->handlers->stderr) <= 0) { + if (ch->handlers->stderr && ch->handlers->stderr->refcount <= 0) { curl_easy_setopt(ch->cp, CURLOPT_STDERR, stderr); }