ID:               29099
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Filesystem function related
 Operating System: Linux
 PHP Version:      5CVS-2004-07-11 (dev)
 New Comment:

Fixed in cvs


Previous Comments:
------------------------------------------------------------------------

[2004-07-11 23:19:51] [EMAIL PROTECTED]

it seems this broke between June 18th and July 8, possibly related to
php_stream_copy_to_mem().


------------------------------------------------------------------------

[2004-07-11 20:48:15] [EMAIL PROTECTED]

Description:
------------
When using file_get_contents() on remote files, the result differs from
the (correct) result using the Curl functions.

Reproduce code:
---------------
$ch = curl_init("http://www.php.net/";);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$str1 = curl_exec($ch);
curl_close($ch);

$str2 = file_get_contents("http://www.php.net/";);

if ($str1 != $str2) {
    echo "Both results differ.\n";
} else {
    echo "Both results are the same.\n";
}


Expected result:
----------------
Output "Both results are the same."

Actual result:
--------------
Output "Both results differ."


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29099&edit=1

Reply via email to