PHP 4.0 Bug #7579: curl_getinto() returns garbage for effective url
| From: | torben@php.net | Date: | Thu, 02 Nov 2000 01:46:46 +0000 |
| Subject: | PHP 4.0 Bug #7579: curl_getinto() returns garbage for effective url | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-36731@lists.php.net to get a copy of this message | ||
From: torben@php.net
Operating system: Mandrake 7.0
PHP version: 4.0 Latest CVS (01/11/2000)
PHP Bug Type: cURL related
Bug description: curl_getinto() returns garbage for effective url
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 yoH@û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.
--
Edit Bug report at: http://bugs.php.net/?id=7579&edit=1