Re: Portability concerns
| From: | (Stig Sæther Bakken) | Date: | Sat, 04 Aug 2001 21:06:10 +0000 |
| Subject: | Re: Portability concerns | ||
| References: | 1 2 3 4 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-62086@lists.php.net to get a copy of this message | ||
[Phil Driscoll <phil@dialsolutions.co.uk>]
> On Saturday 04 August 2001 08:49, Stig Sæther Bakken wrote:
> > [Phil Driscoll <phil@dialsolutions.co.uk>]
> >
> > With such a php_portability() function, it would be _even_ harder to
> > write portable library code (because you need to handle both
> > settings). Two wrongs won't make this one right. :-)
> >
> Please explain!
Say PHP had a function to put it in "portable mode" changing the
behaviour of a few functions. Then for example PEAR classes would
have to deal with running both with and without this mode, since the
user can enable or disable it at will. So this would in fact add
complexity to the process of writing portable PHP code.
I think André is right that it's better to educate users (for example
by telling them to disable magic_quotes :-).
- Stig
--
Stig Sæther Bakken <ssb@alltheweb.com>
Fast Search & Transfer ASA, Trondheim, Norway