PHP5.3: Major version much higher than developer expectation _ PHP Tutorial

Source: Internet
Author: User
PHP5.3: a major version that is far greater than the developer's expectation. With the release of PHP5.3, this open-source dynamic language has ushered in the most important update in the past two years. The new version of PHP has a long string of new features, and the performance has been greatly improved. It should be said that PHP5.3 is the most important update in the past two years with the release of PHP 5.3. The new version of PHP has a long string of new features, and the performance has been greatly improved.

It should be said that PHP 5.3 is a major version that is later than the developer's expectation and has added some features planned to appear in PHP 6. The new version of PHP will continue to play an open-source language role competing with Ruby, Java,. net and other technologies.

Ilia Alshanetsky, a PHP core developer, said, "in terms of new features and functions, PHP 5.3 is more comprehensive than anyone expected, mainly because of the delay in the release of PHP 6. Therefore, despite its long release interval, I think this wait is worthwhile. PHP 5.3 is a great collection of developers' painstaking efforts ."

Alshanetsky said that, like most important PHP versions, this version of PHP introduces many improvements that allow developers to use it more easily.

One of the ways PHP 5.3 simplifies application deployment is that it supports the new namespace, which is one of the ways to encapsulate classes and other PHP Objects.

Alshanetsky indicates that for PHP developers, namespaces can bring clearer code and simpler naming conventions.

"Currently, most library authors are forced to prefix the library name before their classes and function names to avoid naming conflicts. in some cases, this method may cause very difficult names, "Alshanetsky. "This feature also simplifies the use of multiple libraries in a single application. these libraries do not have to follow detailed naming conventions, such as prefix their class/function names ."

Speed up connection to MySQL

PHP is often used in combination with the open-source database MySQL to develop Web applications. they are a very important part in the combination of open-source development tools and LAMP. In PHP 5.3, a new function named MySQLInd was added to replace the previous libmysql Library, which is used to connect PHP and MySQL and can optimize MySQL performance and memory usage.

Alshanetsky said, "in most cases, the main bottleneck is not the speed of database interfaces, but the operation of databases. Replacing the standard libmysql with MySQLInd will certainly improve the speed, but I don't think it will increase the running speed of all applications. In other words, those who use highly tuned MySQL applications will see faster and more dedicated interfaces in the new PHP version ."

In general, Alshanetsky predicts that by switching from current PHP5.2 to PHP 5.3, users will see that the performance of most workflow processes will increase by 5% to 15%, some specific workflows may even see higher benefits.

E_DEPRECATED flag will be deprecated

Although adding new features is a key part of any new technology release, PHP 5.3 has its own special feature-it specifies which feature may be canceled.

This version provides a new error code named E_DEPRECATED, allowing developers to know which specific functions are about to disappear from the language.

Alshanetsky said, "we have encountered such a problem before, and we do not have a clear error code to indicate that the feature is not supported, it is difficult for people to determine at the error code level what functions may be finally removed."

By creating a dedicated error code to solve this problem, developers can use the PHP error record tool to identify which part of their code library is still using the function to be removed, therefore, developers can make corresponding adjustments.

According to Alshanetsky, the PHP development team has a consensus that the function marked as E_DEPRECATED will be removed from PHP 6.

[Related articles]


With the release of idea 5.3, this open-source dynamic language has ushered in the most important update in the past two years. The new version of PHP has a long string of new features, and the performance has been greatly improved. It should be said that PHP 5.3 is...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.