views:

1213

answers:

4

What is upcoming in the new release of PHP, and why should I care? What problems will these improvements help to solve?

Cheers,

Edit: After posting the question I have found these links that also provide some insight.

+10  A: 
  • Unicode support, which will allow you to seamlessly use multiple languages within your applications. Programmers in non-English-speaking countries will even be able to name their functions and classes in their own native language.

  • Some advanced OO concepts such as namespaces and late static binding.

  • Removal of ereg extension, 'register_globals', 'magic_quotes' and 'safe_mode'

  • Alternative PHP Cache

  • foreach($nested_arrays as list($a,$b))

Click Upvote
XMLWriter is already there in since 5.1, namespaces, removal of ereg etc. in 5.3.
vartec
Since it was the point of the question - why is the removal of ereg/register_globals etc, or the alternative PHP cache interesting? (or rather, "why should I care?")
dbr
@dbr: ereg is slow, limited, binary-unsafe, non-unicode. preg functions obsolete it completely. register_globals is poor programming practice leading to insecure and hard to maintain code. APC doubles speed of PHP and adds shared storage (simple, tiny memcached).
porneL
@porneL: dbr's point, as I understood it, is, that this is nothing new. You don't have to use ereg, PCRE is here since PHP4, APC is in PECL, no problem installing it. register_globals, magic_quotes and safe_mode are of by default anyways.
vartec
+22  A: 

Before 6.0 there's PHP 5.3, which will include:

PHP 6.0 will add to that native UTF-8 support in all functions including PHP parser itself (meaning, that you'll be able to use UTF-8 variable and functions names). As with all new releases, there will be some cleanup, removing obsolete extensions (like e.g. ereg), and bundling in by default some extensions from PECL (e.g. APC).

Read more at IBM's developerWorks.


BTW. XMLWriter is nothing new, it's been in PHP since 5.1

vartec
That's the real answer, +1.
Ionuț G. Stan
+6  A: 

Most of the new features have been backported to 5.3, so the only major change in 6.0, will be native unicode support for strings (UTF-8 is not the same as unicode, for the record).

troelskn
+1  A: 

Official TODO list for PHP6.

porneL