Issues

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

Issue Type: Bug Created: 2007-07-17T15:12:14.000+0000 Last Updated: 2008-12-19T11:19:20.000+0000 Status: Closed Fix version(s): Reporter: Goran Hacek (ghacek) Assignee: Goran Hacek (ghacek) Tags: - Zend_Json

Related issues: - ZF-1714

Attachments:

Description

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

<pre class="highlight">
$data = '{"d":"Blog » Preview"}';

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

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

Comments

Posted by Goran Hacek (ghacek) on 2007-07-18T04:55:50.000+0000

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

Following piece of code works as expected.

<pre class="highlight">
$data = '{"d":"Blog » Preview"}';

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

Posted by Wil Sinclair (wil) on 2008-12-19T11:19:20.000+0000

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

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts