Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

David's Blog:
PHP, XML, and Unicode
Mar 02, 2006 @ 00:22:42

David has posted the results from some of his testing with the Unicode support that's available in PHP, specifically in the context of XML.

A couple of weeks ago, Tim Bray posted about PHP and received a firestorm of comments.

As Tim updated his posting with comments, he linked to a two-year-old posting by Steve Minutillo about PHP4's inability to detect character encodings in XML files and other Unicode bugs. That caught me by surprise — after all, PHP uses the venerable Expat as its XML parsing engine (the same engine used in most programming environments other than Java), and if Expat wasn’t getting things right, then the PHP people must have gone way out of their way to misconfigure it.

So, in the rest of the post, he sets about testing these results for himself, using PHP version 4.4.0 and 5.0.5 to test with. He shows the code that he used to create the tests - it produces UTF-8 encoded text regardless of what type it's outputted as. There were some issues that he ran up against, but some of that it just due to the large abiguity that XML creation/handling has in PHP.

tagged: xml unicode utf-8 test support version 4.4.0 5.0.5 xml unicode utf-8 test support version 4.4.0 5.0.5

Link:

David's Blog:
PHP, XML, and Unicode
Mar 02, 2006 @ 00:22:42

David has posted the results from some of his testing with the Unicode support that's available in PHP, specifically in the context of XML.

A couple of weeks ago, Tim Bray posted about PHP and received a firestorm of comments.

As Tim updated his posting with comments, he linked to a two-year-old posting by Steve Minutillo about PHP4's inability to detect character encodings in XML files and other Unicode bugs. That caught me by surprise — after all, PHP uses the venerable Expat as its XML parsing engine (the same engine used in most programming environments other than Java), and if Expat wasn’t getting things right, then the PHP people must have gone way out of their way to misconfigure it.

So, in the rest of the post, he sets about testing these results for himself, using PHP version 4.4.0 and 5.0.5 to test with. He shows the code that he used to create the tests - it produces UTF-8 encoded text regardless of what type it's outputted as. There were some issues that he ran up against, but some of that it just due to the large abiguity that XML creation/handling has in PHP.

tagged: xml unicode utf-8 test support version 4.4.0 5.0.5 xml unicode utf-8 test support version 4.4.0 5.0.5

Link:

Stuart Herbet's Blog:
Gentoo's dev-lang/php Packages Being Stabilised
Jan 20, 2006 @ 12:56:57

On his Gentoo blog, Stuart Herbert has posted this update about the dev-lang/php packages being stabillised for the distribution of the OS.

On Wednesday, Luca filed a request to stabilise our new dev-lang/php packages. As of this morning, these are now the standard packages on the PPC64 and x86 architectures.

We're stabilising PHP-4.3.11 (for the folks who haven't ported packages to work with PHP 4.4's reference changes), PHP 4.4.1, and PHP 5.0.5 (for the early adopters who have binary-encrypted packages). PHP 4.4.2 and PHP 5.1.2 will be stabilised sometime in March (is my best guess).

He also lists some of the advantages that these new packages will bring to Gentoo, like: PHP5 support, a "one package install", the ability to run PHP4 and PHP5 concurrently, and the ability to install PECL packages easily.

tagged: gentoo package stanbilized 4.3.11 5.0.5 one package install gentoo package stanbilized 4.3.11 5.0.5 one package install

Link:

Stuart Herbet's Blog:
Gentoo's dev-lang/php Packages Being Stabilised
Jan 20, 2006 @ 12:56:57

On his Gentoo blog, Stuart Herbert has posted this update about the dev-lang/php packages being stabillised for the distribution of the OS.

On Wednesday, Luca filed a request to stabilise our new dev-lang/php packages. As of this morning, these are now the standard packages on the PPC64 and x86 architectures.

We're stabilising PHP-4.3.11 (for the folks who haven't ported packages to work with PHP 4.4's reference changes), PHP 4.4.1, and PHP 5.0.5 (for the early adopters who have binary-encrypted packages). PHP 4.4.2 and PHP 5.1.2 will be stabilised sometime in March (is my best guess).

He also lists some of the advantages that these new packages will bring to Gentoo, like: PHP5 support, a "one package install", the ability to run PHP4 and PHP5 concurrently, and the ability to install PECL packages easily.

tagged: gentoo package stanbilized 4.3.11 5.0.5 one package install gentoo package stanbilized 4.3.11 5.0.5 one package install

Link:


Trending Topics: