[Pkg-php-pecl] Bug#801962: Invalid input fails to result in error return

Robie Basak robie.basak at ubuntu.com
Fri Oct 16 11:16:03 UTC 2015


Package: php5-json
Version: 1.3.7-1
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu wily

Hi,

As described by Ice downstream:

"On a fundamental level, the provided replacement doesn’t match PHP
Documentation about behaviour. Json_decode() is described to return NULL
on invalid UTF-8 sequence, and set an error message of JSON_ERROR_UTF8.
Current behaviour with json-c is returns JSON_OK, and returns an invalid
string that cannot be used in any PHP Intl function, database, without
throwing exceptions or generating invalid data that can’t be easily
fixed in the database. (Or, it throws more exceptions)"

This is apparently now fixed upstream in 1.3.9
(https://github.com/remicollet/pecl-json-c/issues/9), so please can you
pull that in? I'd like this to sync to Ubuntu fairly soon so that the
behaviour change is implemented early in the run up to our next LTS
release.

I'm happy to help if you want me to push to git somewhere or something.

Downstream bug:

https://bugs.launchpad.net/ubuntu/+source/php-json/+bug/1287726

Thanks,

Robie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-pecl/attachments/20151016/221aaebf/attachment.sig>


More information about the Pkg-php-pecl mailing list