When PHP5.3 was released, and when I go for test several old developed projects mainly open-source on their compatibility with this new version. To my surprise a lot of them are not. To detect the use of these deprecated features the new error level E_DEPRECATED has been introduced in PHP5.3. This enables developers to detect incompatibilies with the future release and learn how to improve their code. Because one can set the error reporting level, the deprecated messages can be switched off. This way developers are not required to immediately adapt their code, if they want to use PHP5.3.
Now comes to the point of what's new in the php 5.3, let’s take a look.
New language (syntax) features
- Namespaces
- Closures
- Compile time constants
- late static binding
- New operators
- ?:
- goto
- NOWDOC syntax, HEREDOC with quotes
- dynamic static calls
New functionality
- New extensions
- SQLite 3, fileinfo, intl, enchant, phar
- Added “Unix” functions to Windows
- fnmatch, symlink, readlink, time_sleep_until,
- stream_socket_pair, …
- Improved SPL functionality
- Improved php.ini handling
- E_DEPRECATED error level
- etc...
Infrastructure improvements
- Improved php.ini handling
- FastCGI always available with CGI SAPI
- New support for litespeed http server
- mysqlnd as PHP-specific replacement for libmysql
- Improved performance
No comments:
Post a Comment