Doc #65415 [NEW]: curl_getinfo() with set opt doesn't return a string but a float

From: Date: Wed, 07 Aug 2013 14:49:17 +0000
Subject: Doc #65415 [NEW]: curl_getinfo() with set opt doesn't return a string but a float
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10151@lists.php.net to get a copy of this message
From: fausten at pw-internet dot de Operating system: FreeBSD 9.1 PHP version: 5.4.17 Package: cURL related Bug Type: Documentation Problem Bug description:curl_getinfo() with set opt doesn't return a string but a float Description: ------------ The doc says: http://php.net/manual/en/function.curl-getinfo.php "If opt is given, returns its value as a string. Otherwise, returns an associative array with the following elements (which correspond to opt), or FALSE on failure" Test script: --------------- <?php $resCurl = curl_init('http://www.dddbl.de'); curl_exec($resCurl); var_dump(curl_getinfo($resCurl, CURLINFO_CONTENT_LENGTH_DOWNLOAD)); Expected result: ---------------- string(4) "4531" Actual result: -------------- float(4531) -- Edit bug report at https://bugs.php.net/bug.php?id=65415&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65415&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65415&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65415&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65415&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65415&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65415&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65415&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65415&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65415&r=support Expected behavior: https://bugs.php.net/fix.php?id=65415&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65415&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65415&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65415&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65415&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65415&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65415&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65415&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65415&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65415&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65415&r=mysqlcfg

« previous php.doc.bugs (#10151) next »