Mchl Posted March 25, 2009 Share Posted March 25, 2009 The PHP development team is proud to announce the availability of the first release candidate of PHP 5.3.0 (PHP 5.3.0RC1). This release marks the final phase in a major improvement in the 5.X series, which includes a large number of new features, bug fixes and security enhancements. The key features of the PHP 5.3 branch include: Support for namespaces Under the hood performance improvements Late static binding Lambda functions and closures Syntax additions: NOWDOC, limited GOTO, ternary short cut "?:" and __callStatic() Optional garbage collection for cyclic references Optional mysqlnd PHP native replacement for libmysql Improved windows support including VC6 and VC9 binaries More consistent float rounding Deprecation notices are now handle via E_DEPRECATED (part of E_ALL) instead of the E_STRICT error level Several enhancements to enable more flexiblity in php.ini (and ini parsing in general) New bundled extensions: ext/phar, ext/intl, ext/fileinfo, ext/sqlite3, ext/enchant Countless bug fixes and improvements to existing extensions in particular to: ext/openssl, ext/spl and ext/date This release also drops several extensions and unifies usage of internal APIs. Users should be aware of the following known backwards compatibility breaks: Parameter parsing API unification will cause some functions to behave more or less strict when it comes to type juggling Removed the following extensions: ext/mhash (see ext/hash), ext/msql, ext/pspell (see ext/enchant), ext/sybase (see ext/sybase_ct) Moved the following extensions to PECL: ext/ming, ext/fbsql, ext/ncurses, ext/fdf Removed zend.ze1_compatibility_mode See the upgrading guide for other minor changes All users of PHP, especially those using earlier PHP 5 releases are advised to test this release as the final release of PHP 5.3.0 will eventually obsolete the 5.2 branch of PHP. For users upgrading from previous PHP 5 releases there is an upgrading guide available here, detailing the changes between those releases and PHP 5.3.0. Please also note that we are aware of issues surrounding float/integer handling in some edge cases (some of which have been introduced in PHP 5.2.0), as well as a crash bug in NSAPI, that will be fixed in PHP 5.3.0RC2. These issues however do not prevent wide spread testing of PHP 5.3.0RC1 as users can now rely on the feature set and implementation decisions no longer being changed. For a full list of changes in PHP 5.3.0, see the CVS NEWS file. Quote Link to comment Share on other sites More sharing options...
corbin Posted March 25, 2009 Share Posted March 25, 2009 Hrmmmm.... Awesome! Quote Link to comment Share on other sites More sharing options...
Maq Posted March 25, 2009 Share Posted March 25, 2009 Ohhhhh nifty, I love writing less and less code.... Since PHP 5.3, it is possible to leave out the middle part of the ternary operator. Expression expr1 ?: expr3 returns expr1 if expr1 evaluates to TRUE, and expr3 otherwise. Quote Link to comment Share on other sites More sharing options...
trq Posted March 25, 2009 Share Posted March 25, 2009 I'm still not overly happy with what they did to the namespace delimeters. Surely there was something better than \ available? Quote Link to comment Share on other sites More sharing options...
corbin Posted March 26, 2009 Share Posted March 26, 2009 Wait.... So namespaces will look like: namespace SomeNameSpace \ //something here \ ??????????????????????????????? Quote Link to comment Share on other sites More sharing options...
Mchl Posted March 26, 2009 Author Share Posted March 26, 2009 Nope... namespace PhpFreaks { function Freak() {...} } PhpFreaks\Freak(); //call function Freak() from PhpFreaks namespace Which will cause us a lot of problems with pasting code to forums... [ php] tags eat \\ Quote Link to comment Share on other sites More sharing options...
corbin Posted March 26, 2009 Share Posted March 26, 2009 Hrmmm still ugly x.x. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.