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

Clay Loveless' Blog:
PHP and JSON: Cut #987
Mar 01, 2007 @ 14:43:00

In a new post today, Clay Loveless talks about some issues he's been having with PHP and JSON, specifically with the JSON encoding method in PHP 5.2.1.

As of PHP 5.2.1, json_decode() no longer follows the published standards for JSON-encoded texts. Why not? For no reason other than the convenience of those ignorant of JSON standards.

His complaint stems from the results of a vat_dump statement - prior to this version it would give a NULL, but now it returns a "bool(true)" value back, resulting in some breakage of previous scripts. He spends the rest of the post explaining his voyage through the JSON world and how things are supposed to behave. He also digs a little deeper into the var_dump issue and why he thinks it's such a bad thing.

tagged: json vardump null true strict adhere extension standard json vardump null true strict adhere extension standard

Link:

Clay Loveless' Blog:
PHP and JSON: Cut #987
Mar 01, 2007 @ 14:43:00

In a new post today, Clay Loveless talks about some issues he's been having with PHP and JSON, specifically with the JSON encoding method in PHP 5.2.1.

As of PHP 5.2.1, json_decode() no longer follows the published standards for JSON-encoded texts. Why not? For no reason other than the convenience of those ignorant of JSON standards.

His complaint stems from the results of a vat_dump statement - prior to this version it would give a NULL, but now it returns a "bool(true)" value back, resulting in some breakage of previous scripts. He spends the rest of the post explaining his voyage through the JSON world and how things are supposed to behave. He also digs a little deeper into the var_dump issue and why he thinks it's such a bad thing.

tagged: json vardump null true strict adhere extension standard json vardump null true strict adhere extension standard

Link:

Tiffany Brown's Blog:
PHP Quickie: More on is_numeric vs. ctype_digit
Aug 17, 2006 @ 12:32:52

Tiffany Brown has posted an update to her look into is_numeric versus ctype_digit today, mentioning an issue she came across when testing based on the differences she found in her previous posting.

Just a quick follow-up to my post on is_numeric vs. ctype_digit. There is one quirk with ctype_digit that may affect your choice about whether to use it.

When the string in question is empty, ctype_digit returns TRUE. However, when it is null, ctype_digit will return FALSE.

She includes code to illustrate, noting the return of each function.

tagged: is_numeric ctype_digit quirk true false return is_numeric ctype_digit quirk true false return

Link:

Tiffany Brown's Blog:
PHP Quickie: More on is_numeric vs. ctype_digit
Aug 17, 2006 @ 12:32:52

Tiffany Brown has posted an update to her look into is_numeric versus ctype_digit today, mentioning an issue she came across when testing based on the differences she found in her previous posting.

Just a quick follow-up to my post on is_numeric vs. ctype_digit. There is one quirk with ctype_digit that may affect your choice about whether to use it.

When the string in question is empty, ctype_digit returns TRUE. However, when it is null, ctype_digit will return FALSE.

She includes code to illustrate, noting the return of each function.

tagged: is_numeric ctype_digit quirk true false return is_numeric ctype_digit quirk true false return

Link:

Christian Wenz's Blog:
Zend and Oracle, again
Feb 15, 2006 @ 00:46:00

Christian Wenz has posted this new item on his blog today with a report relating to the Oracle/Zend rumors that have been floating around.

Well, the rumors (that also made it into blogosphere, including Toby's post) obviously could not be ignored by Zend any longer. Therefore, the German division of Zend just sent out an email to a couple of people officially stating that Zend is currently not negotiating a sale to Oracle.

I suppose only time will tell on the deal, but it seems for now that the sale is not going to happen (and that there never was a sale in talks at all).

tagged: buy zend oracle sale rumor not true german division email buy zend oracle sale rumor not true german division email

Link:

Christian Wenz's Blog:
Zend and Oracle, again
Feb 15, 2006 @ 00:46:00

Christian Wenz has posted this new item on his blog today with a report relating to the Oracle/Zend rumors that have been floating around.

Well, the rumors (that also made it into blogosphere, including Toby's post) obviously could not be ignored by Zend any longer. Therefore, the German division of Zend just sent out an email to a couple of people officially stating that Zend is currently not negotiating a sale to Oracle.

I suppose only time will tell on the deal, but it seems for now that the sale is not going to happen (and that there never was a sale in talks at all).

tagged: buy zend oracle sale rumor not true german division email buy zend oracle sale rumor not true german division email

Link:


Trending Topics: