com php-src: only warning when the flag is true: ext/curl/interface.c

From: Date: Sun, 17 Jun 2018 03:39:08 +0000
Subject: com php-src: only warning when the flag is true: ext/curl/interface.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-102169@lists.php.net to get a copy of this message
Commit: 77e632d04fb3246b6f381aec008fb80cebee4450 Author: Xinchen Hui <laruence@gmail.com> Sun, 17 Jun 2018 11:39:08 +0800 Parents: be49d61b19cea80ccc76e82f8faf2b2a640b658c Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=77e632d04fb3246b6f381aec008fb80cebee4450 Log: only warning when the flag is true Changed paths: M ext/curl/interface.c Diff: diff --git a/ext/curl/interface.c b/ext/curl/interface.c index d197d5c..c63bad6 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -2196,7 +2196,7 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue) /* {{{ } #endif # if defined(ZTS) - if (option == CURLOPT_DNS_USE_GLOBAL_CACHE) { + if (option == CURLOPT_DNS_USE_GLOBAL_CACHE && lval) { php_error_docref(NULL, E_WARNING, "CURLOPT_DNS_USE_GLOBAL_CACHE cannot be activated when thread safety is enabled"); return 1; }

« previous php.cvs (#102169) next »