Is register_long_arrays check necessary?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
php_wiz_kid
Forum Contributor
Posts: 181
Joined: Tue Jun 24, 2003 7:33 pm

Is register_long_arrays check necessary?

Post 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?
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Re: Is register_long_arrays check necessary?

Post 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.
php_wiz_kid
Forum Contributor
Posts: 181
Joined: Tue Jun 24, 2003 7:33 pm

Post by php_wiz_kid »

Alright, I wasn't sure. I saw that PHPBB still used long array variables and I was curious. Thanks.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post 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.
Post Reply