UseBB Community

The official board for UseBB help and discussion

UseBB Community » Chit Chat » Massive changes for PHP 6

Massive changes for PHP 6

Page: 1

Author Post
Developer
Registered: Apr 2004
Posts: 2215
Location: Belgium
Who thought PHP 5 was a big change to the scripting language, check out the results of the meeting for PHP 6 development:

http://www.php.net/~derick/meeting-notes.html

Changes include removal of register_globals, register_long_arrays and safe_mode, E_STRICT on by default, case-sensitive identifiers, and a lot of changes to OO.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Jul 2005
Posts: 7
Location: New Zealand
It is very likely that namespaces will be implemented. The mess that the 5.1.0 release has created prompted calls for namespaces in PHP 5.2.
Member
Registered: Nov 2005
Posts: 6
It's actually a good sign and direction if ya ask me but man is it a nightmare for programmers to get up to speed with just when they get used to a set amount or parameters.
Member
Registered: Oct 2005
Posts: 9
Location: Edmonton, AB
These aren't so bad. We've been told for ages that register_globals is bad right? For long arrays, most documentation encourages $_GET/$_POST now too.

Oh, for strict variable typing, how I long for thee.
Developer
Registered: Apr 2004
Posts: 2215
Location: Belgium
Imo, register globals should have been removed since PHP 5.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Jul 2005
Posts: 7
Location: New Zealand
medwards wrote
Oh, for strict variable typing, how I long for thee.

I don't, loose types make the learning curve much less steep and PHP easier to use IMO. I don't see any really good reason to lose that other than to make purists feel that warm fuzzy feeling.
Member
Registered: May 2004
Posts: 99
Location: Australia
All these big changes, yet they still refuse to adhere to their own function naming standards!
Member
Registered: Oct 2005
Posts: 9
Location: Edmonton, AB
Michael_C wrote
I don't, loose types make the learning curve much less steep and PHP easier to use IMO. I don't see any really good reason to lose that other than to make purists feel that warm fuzzy feeling.


I find not being confident in what kind of data I'm working with, or not knowing how typecasting may work in a specific situation very uncomfortable. Often I'll diddle around in a function call making sure the caller isn't a moron before I just get the work done.

That being said, PHP5 is supposed to have "Type Hinting" (which is just a nice way of saying strict typing). Thus you folks can have flexibility, and I can have confidence in input. In fact, for myself at least, this may lead to interesting hybrid approaches: in most cases go with strict typing, but even GoF's Design Patterns has some interesting approaches with loose typing that I'd be interested in exploring.

Page: 1

UseBB Community » Chit Chat » Massive changes for PHP 6

UseBB Community is powered by UseBB 1 Forum Software