NetBSD Problem Report #42869

From www@NetBSD.org  Mon Feb 22 21:20:22 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id E872C63C594
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 22 Feb 2010 21:20:21 +0000 (UTC)
Message-Id: <20100222212021.9CEA163C49F@www.NetBSD.org>
Date: Mon, 22 Feb 2010 21:20:21 +0000 (UTC)
From: will@flourishlib.com
Reply-To: will@flourishlib.com
To: gnats-bugs@NetBSD.org
Subject: php-json uses outdated PECL extension instead of core PHP extension for PHP 5.2+
X-Send-Pr-Version: www-1.0

>Number:         42869
>Category:       pkg
>Synopsis:       php-json uses outdated PECL extension instead of core PHP extension for PHP 5.2+
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jdolecek
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 22 21:25:00 +0000 2010
>Closed-Date:    Mon Mar 15 16:20:36 +0000 2010
>Last-Modified:  Mon Mar 15 16:20:36 +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:/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.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-i386-maintainer->jdolecek
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Mon, 22 Feb 2010 21:44:55 +0000
Responsible-Changed-Why:
Over to maintainer (pkgsrc problem, nothing to do with i386
hardware support).


From: Takahiro Kambe <taca@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/42869 CVS commit: pkgsrc/textproc/php-json
Date: Sat, 27 Feb 2010 03:52:38 +0000

 Module Name:	pkgsrc
 Committed By:	taca
 Date:		Sat Feb 27 03:52:38 UTC 2010

 Modified Files:
 	pkgsrc/textproc/php-json: Makefile
 Removed Files:
 	pkgsrc/textproc/php-json: distinfo

 Log Message:
 Switch to use json extension bundlede with php-5.2.13, fixing PR pkg/42869.


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/textproc/php-json/Makefile
 cvs rdiff -u -r1.1.1.1 -r0 pkgsrc/textproc/php-json/distinfo

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 01 Mar 2010 01:58:04 +0000
State-Changed-Why:
Did that fix it?


From: Will Bond <will@flourishlib.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/42869 (php-json uses outdated PECL extension instead of core 
	PHP extension for PHP 5.2+)
Date: Mon, 15 Mar 2010 09:46:01 -0400

 --00151747927a0176fc0481d71a1b
 Content-Type: text/plain; charset=ISO-8859-1

 Yes. I switched to the latest pkgsrc, compiled php-json and the PHP code in
 question now runs without segfaulting. Thanks!

 On Sun, Feb 28, 2010 at 9:58 PM, <dholland@netbsd.org> wrote:

 > Synopsis: php-json uses outdated PECL extension instead of core PHP
 > extension for PHP 5.2+
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: dholland@NetBSD.org
 > State-Changed-When: Mon, 01 Mar 2010 01:58:04 +0000
 > State-Changed-Why:
 > Did that fix it?
 >
 >
 >
 >

 --00151747927a0176fc0481d71a1b
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable

 Yes. I switched to the latest pkgsrc, compiled php-json and the PHP code in=
  question now runs without segfaulting. Thanks!<br><br><div class=3D"gmail_=
 quote">On Sun, Feb 28, 2010 at 9:58 PM,  <span dir=3D"ltr">&lt;<a href=3D"m=
 ailto:dholland@netbsd.org">dholland@netbsd.org</a>&gt;</span> wrote:<br>
 <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
 x #ccc solid;padding-left:1ex;"><div class=3D"im">Synopsis: php-json uses o=
 utdated PECL extension instead of core PHP extension for PHP 5.2+<br>
 <br>
 </div>State-Changed-From-To: open-&gt;feedback<br>
 State-Changed-By: dholland@NetBSD.org<br>
 State-Changed-When: Mon, 01 Mar 2010 01:58:04 +0000<br>
 State-Changed-Why:<br>
 Did that fix it?<br>
 <br>
 <br>
 <br>
 </blockquote></div><br>

 --00151747927a0176fc0481d71a1b--

State-Changed-From-To: feedback->closed
State-Changed-By: snj@NetBSD.org
State-Changed-When: Mon, 15 Mar 2010 16:20:36 +0000
State-Changed-Why:
Fixed.  Thanks for confirming!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.