Right now the most stable version of PHP is v5.3.6 released on march 17, 2011. PHP is powerful web language which has a big community support. The most beautiful part of PHP is that it costs you nothing to download and you will get millions of tutorials and books to learn PHP. It first appeared in 1995 and since then it has gone through a long journey with many changes. Recently I found out that PHP is releasing its version 6 in the near future, as expected it will have many changes as compared to its previous version. The most expected changes are listed below.
Remember whatever you read here is only a prediction and not 100 % proven. We can only be sure when the actual end result , that is the final version 6 of PHP is released.
Register Globals most likely to be removed
This setting in file PHP.ini is a major security problem with PHP if turned on. This setting when turned ‘On’ tells to register the contents of the GET, POST, COOKIE, SERVER and Environment variables as global variables.
For example, http://www.xyz.com?name=joe will set $name as a global variable without any coding. That’s a really huge security risk and if removed in v6 will be highly praised.
Magic Quotes will also be removed
The three major function magic_quotes, magic_quotes_sybase and magic_quotes_gpc are introduced for newbies to write SQL commands without the requirement of manual escaping. This was a mistake done by inexperienced developers more frequently and caused a lot of security issues.
String Indexes { } and [ ]
It is expected in version 6 the value of string’s character at a specified position cannot be referred by using { }. In PHP 5 it generated warning messages. The only usage will be the standard array position syntax, [ ].
Unicode Support in PHP
Presently in PHP, Unicode is accessed on per request basis. It cannot be used globally and hence it uses more resources. It is expected that this issue would get fixed in the much awaited PHP version 6.
var same as public
In PHP v6 ‘var’ will be an alias of ‘public’ and will not show any warning.
Any return by reference will generate warning
For example function &xyz will generate warning.
Similarly $ab = & new Exclass() will generate a warning as well.
Other possible changes
- There will be no safe mode
- E_STRICT will be merged into E_ALL
- Ternary operator ‘?’ will work as below
$x = $_POST[‘name’] ?: ‘joe’ i.e if $x is true, $x will be equal to joe.
- Type hinted return value
- foreach multidimensional array
example- foreach($a1 as $a2 => list($a3,$a4))
I hope PHP developing experience will certainly grow more interesting as soon as this version is out in the world.
Well I am one of those people who are eagerly waiting for the new release of PHP v6.









































