Re: PHP_Compat: image_type_to_mime_type()
| From: | Philippe Jausions | Date: | Fri, 18 Jun 2004 14:00:03 +0000 |
| Subject: | Re: PHP_Compat: image_type_to_mime_type() | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev php.pear.dev |
| Request: | Send a blank email to pear-dev+get-30904@lists.php.net to get a copy of this message | ||
Aidan Lister wrote:
What do you think about adding some of this stuff, devs? http://aidan.dotgeek.org/wiki/index.php?area=PHP_Compat&page=AdditionalResources Some of the functions are very old (too old?) and some of the functions don't exactly replicate the behaviour (the ob functions don't clear the memory like the native func).Just a small correction for ob_get_clean(): (return $content) if (!function_exists('ob_get_clean')) {
function ob_get_clean()
{
$contents = ob_get_contents();
// If ob_get_contents failed, do not execute ob_end_clean.
if ($contents !== false) {
ob_end_clean();
}
return $content;
}
}
-Philippe