views:

1130

answers:

5
+16  Q: 

PHP 6.0 - Roadmap?

With the recent announcement that PHP 6 development has been halted, I'm confused as to what the PHP 5.x and 6.x road map includes.

The current version of PHP is 5.3.2.

There were quite a few significant features to come in PHP 6.0, such as:

  • APC include for automatic bytecode caching
  • Unicode support
  • etc..

Question: What is the new road map of PHP given 6.0 has been canceled? What major features will be available next and in what release?

+7  A: 

Features:

  • Unicode support;
  • APC opcode cache as standard;
  • Removal of several deprecated features (eg magic quotes, register globals, the ereg library and safe mode).

No firm date has been set. Anything you read is purely conjecture.

You may want to read Future of PHP 6. PHP6 has somewhat stalled, particularly on the Unicode issues. Just to set the level of your expectations, people have been discussing PHP6 since at least 2006.

cletus
So, will those feature be in v5.4 (if such a version will exist) ... or will they be available in the 5.3 branch?
JustinT
@JustinT I don't think even the PHP team knows the answer to those questions.
cletus
+3  A: 

Here's an article I read recently on the matter: Resetting PHP 6

It goes into some detail the cause of the delay.

Grant Palin
+2  A: 

Horizontal code reuse!

Actually, I'm surprised it's not mentioned yet, it's the biggest feature IMO. Basically, it's a way to ease code reuse, by adding methods to classes without inheriting from another class. It's similar to multiple inheritance, but avoids the diamond problem.

WishCow
um.... what? ...
Earlz
Read the article that Grant Palin linked.
WishCow
The only diamond problem I know of is that I don't own any. Are there others?
Pekka
The diamond problem is referring to multiple inheritance, where you inherit from two classes that themselves inherit from the same base class.
notJim
Traits look really nice. Not so sure I can see the benefits of grafts over traits immediately, but I'm certainly looking forward to playing with it
Shabbyrobe
A: 

The recent release of PHP 5.3 included most of what was originally desirable about PHP6. At last year's Zendcon there was a presentation titled "State of PHP 6", you can see the slides of this presentation here: http://zmievski.org/files/talks/zendcon-2009/php-code-ideas-people.pdf

asnyder
+2  A: 

Unicode branch is on hold for now. Nobody knows what happens with it yet, until there's a good plan how to proceed. The trunk branch - probably to be named 5.4 (or, less probably, 6) - is being actively developed, is to feature significant performance improvements, traits (already in) and some other goodies you can find on http://wiki.php.net/rfc/ or directly from the SVN NEWS file. It would probably be released reasonably soon, but no set dates yet.

P.S. "active development" also means "don't rely on anything you see there too much yet unless you are ready for big changes without notice". Consider yourself warned :)

StasM