The file_get_contents() bug still seems to be present in the test roll, but
not in the latest snap:
Reproduce code (from the bug report for 29099):
--------------
#!/usr/bin/php
<?php
$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/");
echo $str2; // Note garbage at end of string
if ($str1 != $str2) {
echo "Both results differ.\n";
} else {
echo "Both results are the same.\n";
}
The latest snap (200407130430) seems to be just fine though.
Benj Carson
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php