PHP 5.4 emerges with best of abandoned PHP 6.0
The developers behind PHP 6 have scaled back their plan to migrate their code base to Unicode
IDG News Service - With the pending release of PHP version 5.4, due early next year, the creators behind the popular Web scripting language are including the best parts of the now-abandoned PHP 6.0 project.
"I guess you could say [PHP 6] was too ambitious," said Zeev Suraski, one of the principal contributors to PHP as well as the chief technology officer and co-founder of PHP software vendor Zend Technologies.
Last week, the team posted the second release candidate of PHP 5.4. They plan to release the completed version by early 2012.
With PHP 6.0, the development team's goal was to completely rewrite the language using Unicode, rather than ASCII. Unicode is a computer character set that incorporates the alphabets from most of the world's languages. Previous versions of the language rely on ASCII (American Standard Code for Information Interchange), which encodes only the English alphabet.
At first glance, the idea to move to Unicode makes sense for PHP. It is the most widely used server-side scripting language around the world, according to an ongoing survey from Q-Success's W3Techs. Rasmus Lerdorf created PHP in 1995 to help creating dynamic Web pages by providing basic programming concepts to augment the static markup offered by HTML. PHP is an abbreviation of PHP: Hypertext Preprocessor, a recursive algorithm.
Building a Unicode-based PHP, however, developers found their implementation required twice the run-time memory. Perhaps this is not surprising given that many of the characters in Unicode require multiple bytes to render. As a result, the software, though operational, was "significantly slower," Suraski said.
While the use of more memory may not be a big deal for a server running a single Web site, many of PHP's users run large sites requiring multiple servers operating at full capacity. "When you have a popular website, it's all about density: how many requests per second can your server take?" Suraski said. For these users, a greater memory requirement would translate directly into the need to buy more servers.
Because of this excess memory usage, the developers have temporarily halted work on the PHP 6.0 project, focusing their efforts instead on PHP 5.4 instead.
But while PHP 6.0 has been shelved, some of its improvements have been rolled into the next routine upgrade of the language, PHP 5.4.
For instance, the issue that drove the idea behind full Unicode support -- that of natively using more languages -- has been addressed. PHP 5.4 has "inline support" for a number of new languages, including Japanese and some dialects of Chinese, Suraski said. In prior versions of PHP, users that wanted a specific language, such as Japanese, would have to compile a version of PHP with the desired language, which forked these implementations from the standard PHP base. Now the installer only has to change a configuration setting, which would convert the base to Unicode for the desired language. Unicode isn't activated unless specified by the system administrator.
- The Business Value of Continuous Delivery Download this whitepaper to learn more about the business value of Continuous Delivery and see why it could be a game changer for...
- Ten Factors Shaping the Future of Application Delivery Download this research report conducted by Enterprise Management Associates (EMA) to learn how those that are seeking to accelerate application delivery are leveraging...
- Adobe Creative Cloud FAQ The following are answers to common questions about Adobe® Creative Cloud™ for teams membership, purchasing, security, and storage.
- What's coming to Adobe Creative Cloud Editing and video content creation workflows are about to get easier and more exciting, with major updates coming soon to Creative Cloud, bringing...
- What should I look for in a Next Generation Firewall? SANS Provides Guidance With so many vendors claiming to have a Next Generation Firewall (NGFW), it can be difficult to tell what makes each one different....
- Why Are Customers Really Deploying an NGFW? It seems every IT Security expert is talking about the NGFW, but what are people really doing? This webcast covers 5 real-world customer... All App Development White Papers | Webcasts