Wrong evaluation whether json is valid or not
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php-json (Debian) |
Fix Released
|
Unknown
|
|||
php-json (Ubuntu) |
Fix Released
|
Medium
|
Nish Aravamudan | ||
Trusty |
Incomplete
|
Undecided
|
Unassigned | ||
Wily |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
# php -r 'var_dump(
string(1) "�"
Should be:
# php -r 'var_dump(
NULL
Since a large (and growing) number of services use JSON for communication, it's quite bad.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: php5-json 1.3.2-2build1
ProcVersionSign
Uname: Linux 3.13.0-15-generic x86_64
ApportVersion: 2.13.2-0ubuntu5
Architecture: amd64
Date: Tue Mar 4 14:34:43 2014
Ec2AMI: ami-8df705fa
Ec2AMIManifest: (unknown)
Ec2Availability
Ec2InstanceType: c3.xlarge
Ec2Kernel: aki-52a34525
Ec2Ramdisk: unavailable
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: php-json
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in php-json (Debian): | |
status: | Unknown → New |
tags: | added: patch |
Changed in php-json (Debian): | |
status: | New → Fix Released |
Thank you for taking the time to report this bug and helping to make Ubuntu better.
Looks like this is upstream bug https:/ /github. com/remicollet/ pecl-json- c/issues/ 9, and it is suggested that the problem needs to be fixed in libjson-c which is at https:/ /github. com/json- c/json- c
This bug will probably not make any progress in Ubuntu until it is fixed upstream. Any volunteers should seek to fix this upstream for all distributions at once.