]> granicus.if.org Git - php/commitdiff
improve the fix
authorAntony Dovgal <tony2001@php.net>
Fri, 19 Jan 2007 18:03:25 +0000 (18:03 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 19 Jan 2007 18:03:25 +0000 (18:03 +0000)
ext/curl/interface.c

index 6fa2d418850577c275c8ac45da61a07ed730c0d4..dfeebe43e05a6bd805b02cd00d8074afff9f1ff8 100644 (file)
@@ -1273,10 +1273,10 @@ static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *retu
                case CURLOPT_COOKIESESSION:
 #if LIBCURL_VERSION_NUM > 0x070b01 /* CURLOPT_TCP_NODELAY is available since curl 7.11.2 */
                case CURLOPT_TCP_NODELAY:
+#endif
                        convert_to_long_ex(zvalue);
                        error = curl_easy_setopt(ch->cp, option, Z_LVAL_PP(zvalue));
                        break;
-#endif
                case CURLOPT_FOLLOWLOCATION:
                        convert_to_long_ex(zvalue);
                        if (PG(open_basedir) && *PG(open_basedir)) {