ZF-1735: Zend_Json::decode() returns null when json string contains char "»" (ascii 187)

Description

Following piece of code returns null, not an array as it should.


$data = '{"d":"Blog » Preview"}';

var_dump(Zend_Json::decode($data));

Without char "»" (ascii 187) method works as expected.

Comments

This is not an issue of Zend_Json component, but of JSON pecl extension.

Following piece of code works as expected.


$data = '{"d":"Blog » Preview"}';

var_dump(Zend_Json_Decoder::decode($data, Zend_Json::TYPE_ARRAY));

Bookkeeping. Assigning all closed issues to the person who ultimately fixed them.