Re: Re: Regarding the latest patch on fgetcsv() (stable branch)
| From: | Jan Schneider | Date: | Sat, 13 Dec 2003 11:50:19 +0000 |
| Subject: | Re: Re: Regarding the latest patch on fgetcsv() (stable branch) | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-6408@lists.php.net to get a copy of this message | ||
Zitat von Derick Rethans <derick@php.net>:
> On Sat, 13 Dec 2003, Moriyoshi Koizumi wrote:
>
> > Overloading is evil, because functions like substr() are often
> > used to splice a certain length of octets byte-wise while mb_substr()
> > treats the sequence of octets on a character-basis. And overloading
> > cannot be turned on in scripts, this prevents us from writing portable
> > scripts. There're virtually no cleaner way to do the tasks elegantly.
>
> I also think overloading is evil, w've seen before what the problems can
> be because of difference between an overloaded and a non-overloaded
> version. It is however perfectly possible to tune this behavior in the
> php.ini file; not sure if we want that though.
I guess it depends on your pov. If you want to write portable scripts,
relying on overloading or even special php.ini tuning is a nightmare.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft