]> granicus.if.org Git - php/commitdiff
fix build
authorAntony Dovgal <tony2001@php.net>
Wed, 27 May 2009 09:57:13 +0000 (09:57 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 27 May 2009 09:57:13 +0000 (09:57 +0000)
ext/curl/interface.c

index be3781f1cac804b9c7e728246a5dcf9f9173133f..e09905433f2773a6ae8a3fc26ac02cf9df359b13 100644 (file)
@@ -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);
        }