#48390 [NEW]: CURLOPT_PROTOCOLS not supported

From: Date: Mon, 25 May 2009 21:51:06 +0000
Subject: #48390 [NEW]: CURLOPT_PROTOCOLS not supported
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-137727@lists.php.net to get a copy of this message
From: andy at networkmail dot eu Operating system: Solaris 10 PHP version: 5.2.9 PHP Bug Type: cURL related Bug description: CURLOPT_PROTOCOLS not supported Description: ------------ Running PHP 5.2.9 linked against cURL 7.19.4. According to the documentation, the option "CURLOPT_PROTOCOLS" is available as of cURL 7.19.4, but PHP is throwing a notice: "Use of undefined constant CURLOPT_PROTOCOLS - assumed 'CURLOPT_PROTOCOLS'" Also all the "CURLPROTO_*" constants are not available: Use of undefined constant CURLPROTO_HTTPS - assumed 'CURLPROTO_HTTPS' Reproduce code: --------------- <?php $client = curl_init(); curl_setopt($client, CURLOPT_POSTFIELDS, $xml); var_dump(curl_version()); ?> Expected result: ---------------- ** NOTE: No notices ** array(9) { ["version_number"]=> int(463620) ["age"]=> int(3) ["features"]=> int(541) ["ssl_version_number"]=> int(0) ["version"]=> string(6) "7.19.4" ["host"]=> string(19) "i386-pc-solaris2.10" ["ssl_version"]=> string(14) "OpenSSL/0.9.8j" ["libz_version"]=> string(5) "1.2.3" ["protocols"]=> array(9) { [0]=> string(4) "tftp" [1]=> string(3) "ftp" [2]=> string(6) "telnet" [3]=> string(4) "dict" [4]=> string(4) "ldap" [5]=> string(4) "http" [6]=> string(4) "file" [7]=> string(5) "https" [8]=> string(4) "ftps" } } Actual result: -------------- <br /> <b>Notice</b>: Use of undefined constant CURLOPT_PROTOCOLS - assumed 'CURLOPT_PROTOCOLS' in ...<br /> <br /> <b>Notice</b>: Use of undefined constant CURLPROTO_HTTPS - assumed 'CURLPROTO_HTTPS' in ...<br /> array(9) { ["version_number"]=> int(463620) ["age"]=> int(3) ["features"]=> int(541) ["ssl_version_number"]=> int(0) ["version"]=> string(6) "7.19.4" ["host"]=> string(19) "i386-pc-solaris2.10" ["ssl_version"]=> string(14) "OpenSSL/0.9.8j" ["libz_version"]=> string(5) "1.2.3" ["protocols"]=> array(9) { [0]=> string(4) "tftp" [1]=> string(3) "ftp" [2]=> string(6) "telnet" [3]=> string(4) "dict" [4]=> string(4) "ldap" [5]=> string(4) "http" [6]=> string(4) "file" [7]=> string(5) "https" [8]=> string(4) "ftps" } } -- Edit bug report at http://bugs.php.net/?id=48390&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48390&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48390&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48390&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48390&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48390&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48390&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48390&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48390&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48390&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48390&r=support Expected behavior: http://bugs.php.net/fix.php?id=48390&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48390&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48390&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48390&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48390&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48390&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48390&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48390&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48390&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48390&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48390&r=mysqlcfg

« previous php.bugs (#137727) next »