Re: Re: [RFC] PHP_Compat, MIME_Type & mime_content_type
| From: | Helgi Þormar | Date: | Mon, 27 Jun 2005 16:18:56 +0000 |
| Subject: | Re: Re: [RFC] PHP_Compat, MIME_Type & mime_content_type | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-38333@lists.php.net to get a copy of this message | ||
On Mon, 2005-06-27 at 11:19 -0400, Philippe Jausions wrote:
>
> I don't remember seeing anywhere on the site how to deal with
> conditional dependency on PHP_Compat in a package.
>
> Let's say you want to use a fairly new useful PHP function such as
> str_split() (PHP 5) or file_get_contents() (PHP > 4.3.0).
>
> Should the package itself require_once the
> PHP/Compat/function/str_split.php or do you want to let that
> responsibility to the end user in their own script?
What one should do IMHO is copy/paste from PHP_Compat and keep intact
all respectful comments about who are the authors and where it was
gotten from and such.
- Helgi