On Wed, 22 Feb 2012 10:05:16 +0100, Stas Malyshev <smalys...@sugarcrm.com> wrote:

Hi!

I'll add this information to UPGRADING once the mess it's in is sorted out
(there are parts that refer to 5.4 changes that are not merged in 5.4's
UPGRADING).

Which parts are those?

I'm sure most (all?) of these changes are in 5.4:

diff -uw branches/PHP_5_4/UPGRADING trunk/UPGRADING | grep ^+

[snip]
+- In previous versions, names of superglobals could be used for parameter
+ names, thereby shadowing the corresponding superglobal. This now causes a
+  fatal error such as "Cannot re-assign auto-global variable GLOBALS".
+- Arrays cast from SimpleXMLElement now always contain all nodes instead of
+  just the first matching node.
+- All SimpleXMLElement children are now always printed when using var_dump(),
+  var_export(), and print_r().
+  XsltProcess::setSecurityPrefs($options)
[snip]
+     f. New global constants
+
+       - ENT_SUBSTITUTE
+       - ENT_ALLOWED
+       - ENT_HTML401
+       - ENT_XML1
+       - ENT_XHTML
+       - ENT_HTML5
+       - SCANDIR_SORT_ASCENDING
+       - SCANDIR_SORT_DESCENDING
+       - SCANDIR_SORT_NONE
+       - IP_MULTICAST_IF
+       - IP_MULTICAST_TTL
+       - IP_MULTICAST_LOOP
+       - IPV6_MULTICAST_IF
+       - IPV6_MULTICAST_HOPS
+       - IPV6_MULTICAST_LOOP
+       - IPPROTO_IP
+       - IPPROTO_IPV6
+     g. New classes
+     h. New methods
+       - DirectoryIterator
+         - DirectoryIterator::getExtension()
+         - ReflectionClass::getTraits()
+         - ReflectionClass::getTraitNames()
+         - ReflectionClass::getTraitAliases()
+       - RegexIterator
+         - RegexIterator::getRegex()
+
+       - PDO_dblib
+       - SplFileInfo
+
+       - SplFileObject
+       - SplFixedArray
+         - SplFixedArray::__wakeup()
+
+     i. New class constants
+
+       -
+
+     j. New Hash algorithms
+     k. New Syntax
+       - Short array syntax in 5.4.0
+         $a = [1, 2, 3, 4];
+         $a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4];
+         $a = ['one' => 1, 2, 'three' => 3, 4];
+       - Binary number format
+         0b00100 0b010101



--
Gustavo Lopes

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to