+2006-07-10 Dmitry Dulepov <typo3@accio.lv>
+
+ * Fixed bug: missing check for PHP version in t3lib_div::getUrl()
+
2006-07-10 Ernesto Baschny <ernst@cron-it.de>
* Fixed bug #3005: captionSplit.cObject functionality in IMGTEXT is back as documented. But marked as "deprecated".
2006-07-10 Dmitry Dulepov <typo3@accio.lv>
- * Bug: "Publish time" label appeared where "Unpublish time" should appear
+ * Fixed bug: "Publish time" label appeared where "Unpublish time" should appear
2006-07-07 Karsten Dambekalns <karsten@typo3.org>
)
);
- if (function_exists('file_get_contents')) {
- $content = @file_get_contents($url, $ctx);
+ if (function_exists('file_get_contents') && version_compare(phpversion(), '5.0', '>=')) {
+ $content = @file_get_contents($url, false, $ctx);
}
elseif (false !== ($fd = @fopen($url, 'rb', false, $ctx))) {
$content = '';
while (!feof($fd)) {
- $content.= fread($fd, 4096);
+ $content .= fread($fd, 4096);
}
fclose($fd);
}
elseif (false !== ($fd = @fopen($url, 'rb'))) {
$content = '';
while (!feof($fd)) {
- $content.= fread($fd, 4096);
+ $content .= fread($fd, 4096);
}
fclose($fd);
}