#32695 [NEW]: CURLPROXY_SOCKS5 Notices
| From: | just-anonimus-no-spam at no-such-host dot com | Date: | Wed, 13 Apr 2005 14:00:42 +0000 |
| Subject: | #32695 [NEW]: CURLPROXY_SOCKS5 Notices | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-77463@lists.php.net to get a copy of this message | ||
From: just-anonimus-no-spam at no-such-host dot com
Operating system: Linux fc3 2.6.11.6 #1 Tue Apr
PHP version: 5.0.4
PHP Bug Type: cURL related
Bug description: CURLPROXY_SOCKS5 Notices
Description:
------------
I can't solve some problem while trying to get a site content via
socks5 proxy (CURL Information: libcurl/7.13.1 OpenSSL/0.9.7d zlib/1.1.4)
While trying to do like this:
Reproduce code:
---------------
<?php
error_reporting(E_ALL);
$ch = curl_init ();
curl_setopt ($ch, CURLOPT_URL, "http://www.yahoo.com");
curl_setopt ($ch, CURLOPT_TIMEOUT, 30);
curl_setopt ($ch, CURLOPT_PROXY, "192.168.1.12:1080");
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt ($ch, CURLOPT_FAILONERROR, true);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
$result = curl_exec($ch);
print curl_errno ($ch);
print $result;
curl_close ($ch);
?>
Expected result:
----------------
I get: print $result is Ok;
Notice: Use of undefined constant CURLOPT_PROXYTYPE - assumed
'CURLOPT_PROXYTYPE' in /home/jim/php/curl_socks.php on line 7
Notice: Use of undefined constant CURLPROXY_SOCKS5 - assumed
'CURLPROXY_SOCKS5' in /home/jim/php/curl_socks.php on line 7
Actual result:
--------------
But: The socks proxy is ok => $result also Ok!
PS: PLEASE CHECK ERROR (Near Notices)
THANKS::FOR_YOUR_WORK
--
Edit bug report at http://bugs.php.net/?id=32695&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32695&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32695&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32695&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32695&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32695&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32695&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32695&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32695&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32695&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32695&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32695&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32695&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32695&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32695&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32695&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32695&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32695&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32695&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32695&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32695&r=mysqlcfg