October 21, 2009

PHP 6 to boost internationalization with Unicode

The Unicode support plans are made with an eye toward helping developers write apps that can be deployed in multiple markets

PHP 6, a planned major upgrade to the popular open source dynamic language for Web applications, will feature internationalization capabilities via Unicode support, key developers of the language said Wednesday.

"In PHP 6, everything by default will be Unicode," such as default string types, said PHP core developer Andrei Zmievski during a keynote presentation at the 2009 Zend/PHP conference in San Jose, Calif.  The PHP 6 platform also will feature the ability to use Unicode characters for identifiers.

[ PHP is among the scripting languages sparking a new programming era. ]

Unicode for PHP addresses globalization, Zmievski said in an interview after his talk. Developers will want to write their applications so they can be deployed in other markets, he said.  "If you think you can develop your application only for your particular market, you're really missing out on business opportunities elsewhere," Zmievski said.

"Unicode makes it easier to write applications that can deal with various alphabets and encoding," said Andi Gutmans, a PHP core developer and CEO of PHP tools vendor Zend Technologies, in an interview at the conference. "It makes it easier write an application that can work as well in Chinese and Japanese as it can in English."

PHP core developers still need to complete development of Unicode items in areas like cookie access and PDO (PHP Database Objects.)

"Once that's done, we need to test PHP 6 on a number of well-known applications and frameworks, such as Drupal," Zmievski said.

There is  no set date for release of PHP 6, which would follow the release PHP 5.3 this past June. That release included capabilities initially planned for PHP 6 but moved up, such as garbage collection for objects as well as namespaces for better code organization.

Also eyed for PHP 6 is improving how numbers are handled in PHP, including support for long numbers. Another capability being considered is traits, allowing horizontal reuse of code. Developers could add functionality without having to deal with multiple inheritance problems.

Read-only properties and scalar type hints are being considered for the PHP 6 platform. PHP developers also are pondering first order functions, providing a way to refer to functions and methods as objects and be able to pass them around and inspect and modify them.

Briefly touching on plans for a subsequent PHP 7 release, Zmievski cited desires by some to rewrite the language, which he warned against. "There's a lot of calls to change a lot of things, but it's not a good idea to rewrite everything from scratch," he said.

A conference attendee lauded capabilities planned for version 6. Both internationalization and traits "will be really useful for us," said Pierrick Charron, of Nstein, which offers a PHP-based content management system. Internationalization currently presents difficulties in PHP, he explained

Gutmans also stressed PHP's strengths, calling it mainstream for the enterprise and beneficial for cloud computing. "PHP's thriving  and the recession has been a big accelerator behind the adoption of open source and PHP," he said.  "Companies have to increase productivity and lower costs and PHP's a way to do that."

Close

On Twitter now

Languages and standards

Powered by Twitter

White Paper

D2D Virtual Tape Library Replication Primer

This whitepaper explains the terminology and concepts behind Data Replication technologies and establishes some sizing rules through worked examples. Learn the new paradigm in disaster tolerance—protect data anywhere.

Download now »

White Paper

An Alternative to Virtualization for Datacenter Cost Savings

Server virtualization is a popular option for dealing with mounting datacenter costs. Another equally promising approach is the use of an Application Delivery Controller. Citrix NetScaler provides a low-cost way for organizations to reduce their server count and accrue cost savings from a reduction in space, cooling, power and personnel.

Download now »

White Paper

Why Your Firewall, VPN, and IEEE 802.11i Aren't Enough to Protect Your Network

The emergence of WLANs has created a new breed of security threats to enterprise networks.

Included in HP ProCurve WLAN solutions is security technology that alleviates threats from WLANs through:
* Monitoring wireless activity inside and out of the enterprise
* Classifying WLAN transmissions into harmful and harmless
* Preventing transmissions that pose a security threat to the enterprise network
* Locating participating devices for physical remediation

Download now »

White Paper

Bringing the Edge to the Data Center

Effectively address data protection challenges, implementing solutions that help store and protect business–critical data while cutting costs and improving efficiency and reliability.

Download now »

Sign up to receive InfoWorld Resource Alerts

Subscribe to the Developer World Newsletter

Receive a weekly roundup about the art and science of software development.

©1994-2009 Infoworld, Inc.