Page 1 of 1

Is register_long_arrays check necessary?

Posted: Sun May 08, 2005 8:37 pm
by php_wiz_kid
Is it necessary to check for register_long_arrays when creating applications that are expected to be distributed to different servers? Do people still use long array variables or is it something I don't need to worry about?

Re: Is register_long_arrays check necessary?

Posted: Sun May 08, 2005 9:34 pm
by Roja
php_wiz_kid wrote:Is it necessary to check for register_long_arrays when creating applications that are expected to be distributed to different servers? Do people still use long array variables or is it something I don't need to worry about?
I create web games for distribution on some really nasty/old servers. My personal stance is that the long arrays were phased out over two years ago, and if your host is still using them, its completely non-competitive.

In other words, the host needs to upgrade. Badly. Its totally unacceptable for a site to be running a internet accessible webserver with a two year old scripting interface, full of security vulnerabilities. Every major distribution upgraded past those versions over 2 years ago, and hosts should too.

There is a point where developers need to nudge the expectations along, and 2 years of obsolescence in scripting is definitely reasonable.

Your mileage may vary, your target market may be totally different, etc etc.

Posted: Sun May 08, 2005 9:39 pm
by php_wiz_kid
Alright, I wasn't sure. I saw that PHPBB still used long array variables and I was curious. Thanks.

Posted: Mon May 09, 2005 12:39 am
by Roja
php_wiz_kid wrote:Alright, I wasn't sure. I saw that PHPBB still used long array variables and I was curious. Thanks.
PHPBB is a good counter-example. They work very hard to ensure their software will run *anywhere*, so that people don't have to choose a far inferior (possibly even more insecure!) product instead.

As I said, your mileage and customers may vary.