PHP 4.0 Bug #7579 Updated: curl_getinto() returns garbage for effective url

From: Date: Sun, 05 Nov 2000 17:17:17 +0000
Subject: PHP 4.0 Bug #7579 Updated: curl_getinto() returns garbage for effective url
Groups: php.dev 
Request: Send a blank email to php-dev+get-37196@lists.php.net to get a copy of this message
ID: 7579 Updated by: sterling Reported By: torben@php.net Status: Feedback Bug Type: cURL related Assigned To: Comments: This should be fixed in CVS... Try it out, and let me know Previous Comments: --------------------------------------------------------------------------- [2000-11-01 20:46:46] torben@php.net Example script: <?php /* -*- mode: c++; minor-mode: font -*- */ error_reporting(E_ALL); $url = 'http://www.php.net'; $curld = curl_init(); curl_setopt($curld, CURLOPT_URL, $url); curl_setopt($curld, CURLOPT_RETURNTRANSFER, true); curl_exec($curld); echo curl_getinfo($curld, CURLINFO_EFFECTIVE_URL); curl_close($curld); ?> Output (typical): ÄÜwall or eat it for lunch. Welcome to the world of Open Source software! Smile, be happy, the world is good. For the full legalese, see the official license. Year 2000 Compliance Ë@ Á@H(`¨@C compiler or yoАH@ûY@ˆNK@äÿ¿c¸G Curl version in use: 7.4.1.Echoing the return value from curl_exec() in the above example shows the correct data. curl_errno() returns -1073749044. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7579

« previous php.dev (#37196) next »