NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
port-i386/42869: php-json uses outdated PECL extension instead of core PHP extension for PHP 5.2+
>Number: 42869
>Category: port-i386
>Synopsis: php-json uses outdated PECL extension instead of core PHP
>extension for PHP 5.2+
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: port-i386-maintainer
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Feb 22 21:25:00 +0000 2010
>Originator: Will Bond
>Release: 5.0.1
>Organization:
Flourish
>Environment:
NetBSD vm-netbsd 5.0.1 NetBSD 5.0.1 (GENERIC) #0: Thu Jul 30 01:39:11 UTC 2009
builds%b8.netbsd.org@localhost:/home/builds/ab/netbsd-5-0-1-RELEASE/i386/200907292356Z-obj/home/builds/ab/netbsd-5-0-1-RELEASE/src/sys/arch/i386/compile/GENERIC
i386
>Description:
When running unit tests to test a PHP JSON class, I noticed that PHP was core
dumping one of the mal-formed JSON tests. I removed
/usr/pkgsrc/textproc/php-json and instead ran "phpize && ./configure && make
install" in /usr/pkgsrc/lang/php5/work/php-5.2.12/ext/json/. After this, all of
the tests ran successfully.
From this, and the fact that distfiles/php-json.tgz has a timestamp of the last
PECL release, it appears to me that php-json is not using the json extension
that has been part of PHP core since PHP 5.2.0.
>How-To-Repeat:
php -r 'print_r(json_decode("[{\"\":1}]"));'
>Fix:
For php 5.2+ use the json extension bundled with PHP in ext/json.
Home |
Main Index |
Thread Index |
Old Index