|
Posted by ELINTPimp on 10/14/07 21:45
On Oct 14, 5:03 pm, Lars Eighner <use...@larseighner.com> wrote:
> In our last episode, <1192381352.545068.4...@v23g2000prn.googlegroups.com>,
> the lovely and talented ELINTPimp broadcast on comp.lang.php:
>
>
>
> > On Oct 14, 10:43 am, Summercool <Summercooln...@gmail.com> wrote:
> >> On Oct 13, 7:05 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>
> >> > It sounds like you're running with magic_quotes enabled. It's a setting
> >> > I wish they would have never had, and I recommend you turn it off.
>
> >> i checked phpinfo()
>
> >> yes, magic_quotes_gpc is on, and it is said that it is the default
> >> setting.
>
> >> magic_quotes_runtime is off by default.
> >> magic_quotes_sybase is off.
>
> >> so shouldn't we work with the default setting? like if i use a
> >> hosting company like Dreamhost, we can't ask them to turn off just for
> >> us.
> > PHP6 will no longer support magic quotes,along with register globals
> > and "safe mode". Some of these may be enabled by default on some PHP
> > versions, but you should disable them and not rely on them
> > whatsoever. Take a look at the link below for these changes as well
> > as reasons why they are going this way from the PHP hackers
> > themselves.
> >http://www.php.net/~derick/meeting-notes.html
>
> Note to self: do not upgrade to PHP 6. They have broken it in order to
> cater to morons.
>
> --
> Lars Eighner <http://larseighner.com/> <http://myspace.com/larseighner>
> Countdown: 463 days to go.
> What do you do when you're debranded?
Lars,
These "features" (magic quotes, registered globals, etc) were intended
to do generic work to make life easier/more secure for the masses. In
PHP6, they are undoing the damage they have done in this "catering to
morons", as you put it. PHP4 is dead on 8 August 2008. Yes, that's
still almost a year away, and yes, PHP4 was carried for quite a bit
longer than most people thought it should have been...but one day,
PHP5 will be in that place. I think it's wise to always write your
code with the future in mind, giving it the longest lifespan it can
have (or at least not influence others that may be learning PHP to the
contrary). To disregard PHP6 by labeling it 'broken' and infering it
is written for morons does nothing for you or to advance the PHP
community.
If you read a little of the discussions at the link I provided above,
perhaps you will have more appreciation for the work that goes on,
mostly unpaid, behind the scenes to make your life better.
Regards,
Steve
Navigation:
[Reply to this message]
|