Bug #71831 [NEW]: CURLOPT_NOPROXY applied as long instead of string

From: Date: Tue, 15 Mar 2016 19:15:52 +0000
Subject: Bug #71831 [NEW]: CURLOPT_NOPROXY applied as long instead of string
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199847@lists.php.net to get a copy of this message
From: michael dot sierks at priceline dot com Operating system: Linux PHP version: 5.5.33 Package: cURL related Bug Type: Bug Bug description:CURLOPT_NOPROXY applied as long instead of string Description: ------------ The CURLOPT_NOPROXY option is applied as a long instead of a string. This causes the option to have no effect. https://curl.haxx.se/libcurl/c/CURLOPT_NOPROXY.html Test script: --------------- $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://google.com"); 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, "*"); curl_exec($ch); 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. -- Edit bug report at https://bugs.php.net/bug.php?id=71831&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71831&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71831&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71831&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71831&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71831&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71831&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71831&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71831&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71831&r=support Expected behavior: https://bugs.php.net/fix.php?id=71831&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71831&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71831&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71831&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71831&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71831&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71831&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71831&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71831&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71831&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71831&r=mysqlcfg

« previous php.bugs (#199847) next »