debian/0000775000000000000000000000000012300671173007170 5ustar debian/json.ini0000664000000000000000000000010412225741343010640 0ustar ; configuration for php json module ; priority=20 extension=json.so debian/copyright0000664000000000000000000001146012225741343011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: pecl-json-c Upstream-Contact: Remi Collet Source: http://pecl.php.net/package/jsonc Files: * Copyright: The PHP Group License: PHP-3.01 Files: */json-c/* Copyright: 2004-2005, Metaparadigm Pte. Ltd. 2008-2009, Yahoo! Inc. 2009-2012 Hewlett-Packard Development Company, L.P. License: Expat Files: debian/* Copyright: 2013 Ondřej Surý License: Expat License: PHP-3.01 -------------------------------------------------------------------- The PHP License, version 3.01 Copyright (c) 1999 - 2006 The PHP Group. All rights reserved. -------------------------------------------------------------------- . Redistribution and use in source and binary forms, with or without modification, is permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. The name "PHP" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact group@php.net. . 4. Products derived from this software may not be called "PHP", nor may "PHP" appear in their name, without prior written permission from group@php.net. You may indicate that your software works in conjunction with PHP by saying "Foo for PHP" instead of calling it "PHP Foo" or "phpfoo" . 5. The PHP Group may publish revised and/or new versions of the license from time to time. Each version will be given a distinguishing version number. Once covered code has been published under a particular version of the license, you may always continue to use it under the terms of that version. You may also choose to use such covered code under the terms of any subsequent version of the license published by the PHP Group. No one other than the PHP Group has the right to modify the terms applicable to covered code created under this License. . 6. Redistributions of any form whatsoever must retain the following acknowledgment: "This product includes PHP software, freely available from ". . THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. . -------------------------------------------------------------------- . This software consists of voluntary contributions made by many individuals on behalf of the PHP Group. . The PHP Group can be contacted via Email at group@php.net. . For more information on the PHP Group and the PHP project, please see . . PHP includes the Zend Engine, freely available at . License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/php5-json.dirs0000664000000000000000000000003712225741343011701 0ustar usr/lib/php5 usr/lib/php5/json debian/php5-json.install0000664000000000000000000000005012225741343012401 0ustar */php_json.h usr/include/php5/ext/json/ debian/rules0000775000000000000000000000022012225741343010245 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --buildsystem=phppear --with phppear --with php5 debian/source/0000775000000000000000000000000012225741343010473 5ustar debian/source/format0000664000000000000000000000001412225741343011701 0ustar 3.0 (quilt) debian/changelog0000664000000000000000000000403112300671173011040 0ustar php-json (1.3.2-2build1) trusty; urgency=medium * No change rebuild for phpapi-20121212+lfs (LFS ABI break on 32-bit arches). -- Robie Basak Tue, 18 Feb 2014 14:47:23 +0000 php-json (1.3.2-2) unstable; urgency=low * Add fix to properly decode null bytes * Pull two more upstream tests we are missing (comments and null byte) -- Ondřej Surý Fri, 11 Oct 2013 11:20:20 +0200 php-json (1.3.2-1) unstable; urgency=low * New upstream version 1.3.2 * Enforce the usage of json-c with required patches (>= 0.11-3~) * Re-include json-c/* library, so add debian/copyright information about the json-c library license * Convert to pkg-php-tools again since php-json-c is now correct PECL package -- Ondřej Surý Mon, 09 Sep 2013 16:50:46 +0200 php-json (1.3.1+dfsg-3) unstable; urgency=low * Add Breaks/Replaces for php5-dev since we now carry php_json.h headers (Closes: #720053) -- Ondřej Surý Tue, 20 Aug 2013 14:34:11 +0200 php-json (1.3.1+dfsg-2) unstable; urgency=low * Install php_json.h header to allow compilation of other modules -- Ondřej Surý Wed, 07 Aug 2013 09:37:50 +0200 php-json (1.3.1+dfsg-1) unstable; urgency=low * New upstream version 1.3.1+dfsg * Use dh_php5 to build the package -- Ondřej Surý Wed, 10 Jul 2013 11:20:33 +0200 php-json (0~git~1+c05ebf+dfsg-2) unstable; urgency=low * Use correct directory for ucf (Courtesy of Michał Pena) -- Ondřej Surý Sat, 01 Jun 2013 18:04:18 +0200 php-json (0~git~1+c05ebf+dfsg-1) unstable; urgency=low * New upstream replacement package for non-free PHP json extension * Remove embedded json-c library (it was not used anyway) * Really compile with system json-c library (use --with-libjson) * Add php5-cli to B-D to allow tests * Build depend on php5-cli (>= 5.5.0~rc1+dfsg-1) to allow testing to succeed. -- Ondřej Surý Fri, 31 May 2013 11:45:39 +0200 debian/control0000664000000000000000000000214412225741343010577 0ustar Source: php-json Section: php Priority: optional Maintainer: Debian PHP Maintainers Uploaders: Ondřej Surý Build-Depends: debhelper (>= 9), php5-dev (>= 5.5.0~rc1+dfsg-1), php5-cli (>= 5.5.0~rc1+dfsg-1), dh-php5, pkg-config, pkg-php-tools, libjson-c-dev (>= 0.11-3~) Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-php/php-json.git Vcs-Browser: http://anonscm.debian.org/?p=pkg-php/php-json.git Homepage: http://pecl.php.net/package/jsonc Package: php5-json Architecture: any Depends: ${shlibs:Depends}, ${php:Depends}, ${misc:Depends}, ucf, libjson-c2 (>= 0.11-3~) Breaks: php5-common (<< 5.5.0~rc1+dfsg-1~), php5-dev (<< 5.5.0~rc1+dfsg-1~), Replaces: php5-dev (<< 5.5.0~rc1+dfsg-1~) Description: JSON module for php5 This package provides a module for JSON functions in PHP scripts. . PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. debian/patches/0000775000000000000000000000000012225741343010622 5ustar debian/patches/add-missing-tests.patch0000664000000000000000000000464412225741343015212 0ustar --- php-json.orig/package.xml +++ php-json/package.xml @@ -69,6 +69,8 @@ This is a drop-in alternative to PHP sta + + --- /dev/null +++ php-json/jsonc-1.3.2/tests/012-null-byte.phpt @@ -0,0 +1,15 @@ +--TEST-- +Decode value with null-byte (key not yet properly decode) +--SKIPIF-- + +--FILE-- + +--EXPECT-- +666f6f00626172 +Done --- /dev/null +++ php-json/jsonc-1.3.2/tests/011-comments.phpt @@ -0,0 +1,59 @@ +--TEST-- +JsonIncremantalParser::parseFile() test +--SKIPIF-- + 0.11') +?> +--FILE-- + +--EXPECT-- +Testing: / bad comment +["foo"] +NULL +NULL +Testing: // comment +["foo"] +NULL +array(1) { + [0]=> + string(3) "foo" +} +Testing: /* comment */ ["foo"] +NULL +array(1) { + [0]=> + string(3) "foo" +} +Testing: [/* comment */ "foo"] +NULL +array(1) { + [0]=> + string(3) "foo" +} +Testing: ["/* not a comment */ foo"] +array(1) { + [0]=> + string(23) "/* not a comment */ foo" +} +array(1) { + [0]=> + string(23) "/* not a comment */ foo" +} +Done debian/patches/series0000664000000000000000000000007012225741343012034 0ustar properly-decode-null-byte.patch add-missing-tests.patch debian/patches/properly-decode-null-byte.patch0000664000000000000000000000054712225741343016657 0ustar --- php-json.orig/jsonc-1.3.2/json.c +++ php-json/jsonc-1.3.2/json.c @@ -801,7 +801,7 @@ static void json_object_to_zval(json_obj break; case json_type_string: - RETVAL_STRING(json_object_get_string(new_obj), 1); + RETVAL_STRINGL(json_object_get_string(new_obj), json_object_get_string_len(new_obj), 1); break; case json_type_int: debian/compat0000664000000000000000000000000212225741343010371 0ustar 9 debian/php5-json.php50000664000000000000000000000002412225741343011610 0ustar mod debian/json.ini