Re: PHP_Compat: image_type_to_mime_type()
| From: | Aidan Lister | Date: | Fri, 18 Jun 2004 14:44:09 +0000 |
| Subject: | Re: PHP_Compat: image_type_to_mime_type() | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-30907@lists.php.net to get a copy of this message | ||
> I'm not sure you'll be able to emulate the super-globals. That would
> require a lot of change in a user's code, i.e. calling loadEnvironment
> all the time) I would drop it from PEAR::Compat if I were you...
<?php
PHP_Compat::loadEnv('superglobals');
function foo (blah)
{
global $_POST;
//etc
}
?>
I see it in a lot of compatability scripts. Although it doesn't replace all
the functionality, it does help.
That said, I want to know what everyone else thinks.
> Do you intend to split all this into separate files? It would be more
> appropriate...
Ofcourse, that page is just a collection so of stuff I wasn't comfortable
adding until I discussed it with everyone else.
>
> -Philippe
>
>