Re: Spelling of name for Mail/mime.php?
| From: | Stefan Neufeind | Date: | Sun, 18 Jan 2004 22:46:41 +0000 |
| Subject: | Re: Spelling of name for Mail/mime.php? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-25140@lists.php.net to get a copy of this message | ||
On 18 Jan 2004 at 14:04, Greg Beaver wrote:
> Hi Richard,
>
> You needn't remove Mail/mime.php, simply put two file tags in the
> package.xml, and copy mime.php to any filename at package-time. You
> could even write a simple shell script to do the dirty work for you.
> In other words, no extra effort is required to fix this for every
> future release without breaking BC.
>
[...]
>
> Richard Heyes wrote:
> >>I just used Mail/mime.php for the first time :-) Hey, a great class.
> >> But I wondered why the name mime.php is in lower case instead of
> >>Mime.php. Are there plans to correct this, maybe in a following
> >>release?
> >
> >
> > Nope.
Hi Greg,
well, now that Pierre has pointed it out: The class-name inside the
mime.php is even Mail_mime and not Mail_Mime. If we're thinking about
PHP5 this might lead to problems since the class-names then are case-
sensitive. So for PHP5 really Mail_mime and Mail_Mime (both classes,
in two files) might be independent classes?
Hmm - anybody got an idea how to solve these problems? Or just live
with it? The change is hard - but better do it now than in 20 years -
what do you think? Maybe together with squashing the bugs currently
in the bug-system and releasing a 2.0 (new major) to clear up the
naming conficts? Please note: There are even more "non-standard"-
names used inside the class Mail_mimeDecode etc.
Don't get me wrong - I like the class very much, since I've now
discovered it's features today! :-))
Regards,
Stefan