|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71831 CURLOPT_NOPROXY applied as long instead of string
Submitted: 2016-03-15 19:15 UTC Modified: 2016-03-15 20:15 UTC
Avg. Score:4.7 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:-2 (-100.0%)
From: michael dot sierks at priceline dot com Assigned:
Status: Closed Package: cURL related
PHP Version: master OS: Linux
Private report: No CVE-ID: None
 [2016-03-15 19:15 UTC] michael dot sierks at priceline dot com
The CURLOPT_NOPROXY option is applied as a long instead of a string. This causes the option to have no effect.

Test script:
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "");
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_VERBOSE, true);

// proxy settings
curl_setopt($ch, CURLOPT_PROXY, "my.local.proxy:8080");
curl_setopt($ch, CURLOPT_NOPROXY, "*");


Expected result:
You should see in the output the proxy is not used.

Actual result:
The proxy is used in all cases, even though a wildcard no-proxy option has been set for all urls.


fix_curlopt_noproxy_type (last revision 2016-03-15 19:16 UTC by michael dot sierks at priceline dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-15 20:15 UTC]
-Status: Open +Status: Verified -PHP Version: 5.5.33 +PHP Version: master
 [2016-03-21 08:44 UTC]
Automatic comment on behalf of
Log: FIX #71831: CURLOPT_NOPROXY applied as long instead of string
 [2016-03-21 08:44 UTC]
-Status: Verified +Status: Closed
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 23:01:26 2023 UTC