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


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

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


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


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.