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 20 Best iPhone/iPad Games of 2013 So Far
- 9 Steps to Build Your Personal Brand (and Your Career)
- 7 Consumer Technologies Coming to an Enterprise Near You
- 11 Signs Your IT Project is Doomed
- A walking tour: 33 questions to ask about your company's security
- 15 social media scams
- The 7 elements of a successful security awareness program
- IT Certification Study Tips
- Register for this Computerworld Insider Study Tip guide and gain access to hundreds of premium content articles, cheat sheets, product reviews and more.
- The Five Big Lies the C-Suite Hears About "Going Mobile" Mobile has already made a tremendous impact-to the tune of 29 billion apps downloaded in 2011. With such a new technology, it's not...
- mPayment Scenario Planning and Recommendations The mPayment industry is predicted to reach $1.3 trillion by 2017. This report offers conclusions into the impact mobile will have on businesses...
- Is Your App Getting Used? Understanding UX and Your Audience Want your app to be one of the 70 percent that is opened but never used again? If not, then you need to...
- Harness IT -- An Introduction to Business Intelligence Solutions Learn the key selection criteria required to provide your organization with the capability to address structured data, unstructured data and mobile demands so...
- Becoming An Analytics Driven Organization Join us on Tuesday, June 18, 2013, 11:00 AM EDT and learn how your agency can create an analytics culture that will enable...
- 3 Reasons Why Sepaton is the World's Fastest Backup Solution Leading analyst, Storage Switzerland learns how Sepaton backs up and deduplicates massive data volumes while maintaining the industry's fastest performance - all in... All App Development White Papers | Webcasts
Our weekly newsletter will cover a wide range of topics and trends related to consumerization. Stay up to date with news, reviews and in-depth coverage of BYOD, smartphones, tablets, MDM, cloud, social and how consumerization affects IT. Subscribe now!