debian/0000755000000000000000000000000011757444573007207 5ustar debian/tests_run0000755000000000000000000000030611757444573011162 0ustar #!/bin/sh set -e pear_pkg=`ls | grep XML_Parser` ln -s ${pear_pkg} XML PKG_ROOT=`pwd` cd ${pear_pkg} cd tests phpunit -d include_path=".:/usr/share/php:${PKG_ROOT}" AllTests.php cd ../.. rm XML debian/control0000644000000000000000000000241311757444573010612 0ustar Source: php-xml-parser Section: php Priority: optional Maintainer: PKG-PHP-PEAR team Uploaders: Thijs Kinkhorst , Thomas Goirand Build-Depends: debhelper (>= 8), pkg-php-tools, phpunit (>= 3.6) Standards-Version: 3.9.3 Build-Depends-Indep: php-pear Vcs-Browser: http://git.debian.org/?p=pkg-php/php-xml-parser.git Vcs-Git: http://git.debian.org/git/pkg-php/php-xml-parser.git Homepage: http://pear.php.net/package/XML_Parser Package: php-xml-parser Architecture: all Depends: ${misc:Depends} Pre-Depends: php-pear (>= 5.3) Description: PHP PEAR module for parsing XML This is an XML parser based on PHPs built-in xml extension. It supports two basic modes of operation: 'func' and 'event'. In 'func' mode, it will look for a function named after each element (xmltag_ELEMENT for start tags and xmltag_ELEMENT_ for end tags), and in 'event' mode it uses a set of generic callbacks. . Since version 1.2.0 there's a new XML_Parser_Simple class that makes parsing of most XML documents easier, by automatically providing a stack for the elements. Furthermore its now possible to split the parser from the handler object, so you do not have to extend XML_Parser anymore in order to parse a document with it. debian/changelog0000644000000000000000000000752211757444573011067 0ustar php-xml-parser (1.3.4-6) unstable; urgency=low * Fixed unit tests script and fixes FTBFS (Closes: #674394). -- Thomas Goirand Thu, 24 May 2012 14:43:28 +0000 php-xml-parser (1.3.4-5) unstable; urgency=low * Now builds with unit tests (and Depends: phpunit >= 3.6). -- Thomas Goirand Tue, 22 May 2012 06:22:04 +0000 php-xml-parser (1.3.4-4) unstable; urgency=low * Fixes the XML_Parser constructor name which is destroying compatibility with reverse dependencies. -- Thomas Goirand Mon, 09 Apr 2012 12:31:19 +0000 php-xml-parser (1.3.4-3) unstable; urgency=low * Fixing my patch. -- Thomas Goirand Fri, 30 Mar 2012 22:11:35 +0000 php-xml-parser (1.3.4-2) unstable; urgency=low * Fixes some PHP Strict Standards issues (see debian/patches). * Bumps Standard-Version to 3.9.3 (no changes). -- Thomas Goirand Fri, 30 Mar 2012 21:37:06 +0000 php-xml-parser (1.3.4-1) unstable; urgency=low * New upstream release. * Switching from SVN to Git packaging on Alioth (updated Vcs fields). * Using PKG-PHP-PEAR team as maintainer (Closes: #656986). * Switching debian/copyright to DEP5. * Switching to source format 3.0 (quilt), updated patch to use quilt instead of dpatch, remove a part of it for the new upstream version already includes the switch from ereg to preg patch. * Switching to pkg-php-tools and dh 8 sequencer. * Removed now useless debian/{dirs,examples,README.Source}. * Updated debian/watch file. * Bumps Standard-Version to 3.9.2 (no changes). -- Thomas Goirand Sun, 29 Jan 2012 22:35:25 +0800 php-xml-parser (1.3.2-4) unstable; urgency=low * Sets Pre-Depends: php-pear (>= 5.3) instead of just Depends: php-pear as recommended by the release team (Closes: #605864). -- Thomas Goirand Sat, 04 Dec 2010 15:40:18 +0800 php-xml-parser (1.3.2-3) unstable; urgency=low * Replaced a call of dpatch apply-all by a dependency on the patch target of /usr/share/dpatch/dpatch.make in the build: target. -- Thomas Goirand Fri, 10 Sep 2010 00:27:11 +0800 php-xml-parser (1.3.2-2) unstable; urgency=low * Added myself as uploader. * Fixes PHP 5.3.x warning due to ereg() and return of a reference, which are now deprecated (Closes: #580383). * Bumps Standard-Version to 3.9.1. * Added debian/source/format and debian/README.source -- Thomas Goirand Wed, 01 Sep 2010 02:02:16 +0800 php-xml-parser (1.3.2-1) unstable; urgency=low * New upstream release. * Checked for policy version 3.8.4, changed section to php. * Upgraded debhelper to compat level 7. -- Thijs Kinkhorst Sun, 09 May 2010 18:47:35 +0200 php-xml-parser (1.3.0-1) unstable; urgency=low [ Thijs Kinkhorst ] * New upstream release. + Changes licence to BSD, closes: #332618. * Checked for policy version 3.8.0, no changes. [ Raphael Geissert ] * debian/watch: added. -- Thijs Kinkhorst Mon, 01 Sep 2008 14:12:57 +0200 php-xml-parser (1.2.8-1) unstable; urgency=low * New upstream release. * Packaging cleanups: redo build process, checked for newest policy, add Homepage and Vcs fields. -- Thijs Kinkhorst Sun, 04 May 2008 15:33:42 +0200 php-xml-parser (1.2.6-2) unstable; urgency=low * Need to replace php4-pear (<< 4:4.4.0-0), yes the epoch matters. * Update debian/copyright to make sure the license is correct, the Debian maintainers are mentioned, the upstream copyright holder is mentioned and the upstream location is quoted. -- Adam Conrad Fri, 29 Jul 2005 08:38:16 +1000 php-xml-parser (1.2.6-1) unstable; urgency=low * Initial release. -- Ondřej Surý Thu, 21 Jul 2005 09:45:07 +0200 debian/watch0000644000000000000000000000016711757444573010244 0ustar version=3 http://pear.php.net/package/XML_Parser/download http://download.pear.php.net/package/XML_Parser-([\d.]+).tgz debian/compat0000644000000000000000000000000211757444573010405 0ustar 8 debian/gbp.conf0000644000000000000000000000016411757444573010627 0ustar [DEFAULT] upstream-branch = upstream-sid debian-branch = debian-sid [git-buildpackage] export-dir = ../build-area/ debian/source/0000755000000000000000000000000011757444573010507 5ustar debian/source/format0000644000000000000000000000001411757444573011715 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000375511757444573011154 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=240 Upstream-Name: XML_Parser Upstream-Contact: Stig Bakken , Tomas V.V.Cox , Stephan Schmidt Source: http://pear.php.net/package/XML_Parser/download Files: debian/* Copyright: (c) 2005, Ondřej Surý (c) 2006-2010, Thijs Kinkhorst (c) 2010-2012, Thomas Goirand License: BSD Files: * Copyright: (c) 2002-2008 The PHP Group (c) Stig Bakken (c) Tomas V.V.Cox (c) Stephan Schmidt License: BSD License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 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. . The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS 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 COPYRIGHT OWNER OR 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. debian/patches/0000755000000000000000000000000011757444573010636 5ustar debian/patches/series0000644000000000000000000000011711757444573012052 0ustar 0001-PHP-5.4-strict-standard-compat.patch 0020-fixes-phpunit-3.6-include.patch debian/patches/0020-fixes-phpunit-3.6-include.patch0000644000000000000000000000103511757444573016765 0ustar Description: Fixes the PHPUnit include so that it works with version 3.6 of PHPUnit Author: Thomas Goirand Forwarded: no --- php-xml-parser-1.3.4.orig/XML_Parser-1.3.4/tests/AllTests.php +++ php-xml-parser-1.3.4/XML_Parser-1.3.4/tests/AllTests.php @@ -46,7 +46,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) { /* * Files needed by PhpUnit */ -require_once 'PHPUnit/Framework.php'; +require_once 'PHPUnit/Autoload.php'; require_once 'PHPUnit/TextUI/TestRunner.php'; require_once 'PHPUnit/Extensions/PhptTestSuite.php'; debian/patches/0001-PHP-5.4-strict-standard-compat.patch0000644000000000000000000000506111757444573017557 0ustar Description: Makes the Parser.php compatible with PHP 5.4 strict standards This patch fixes the following issues: * PHP Strict Standards: Redefining already defined constructor for class XML_Parser in /usr/share/php/XML/Parser.php on line 227 * PHP Strict Standards: Declaration of XML_Parser::raiseError() should be compatible with & PEAR::raiseError($message = NULL, $code = NULL, $mode = NULL, $options = NULL, $userinfo = NULL, $error_class = NULL, $skipmsg = false) in /usr/share/php/XML/Parser.php on line 117 * A return of a reference in the raiseError() function. Author: Thomas Goirand Forwarded: no --- a/XML_Parser-1.3.4/Parser.php 2012-04-09 16:00:17.000000000 +0000 +++ b/XML_Parser-1.3.4/Parser.php 2012-04-09 16:00:52.000000000 +0000 @@ -192,26 +192,6 @@ var $_validEncodings = array('ISO-8859-1', 'UTF-8', 'US-ASCII'); // }}} - // {{{ php4 constructor - - /** - * Creates an XML parser. - * - * This is needed for PHP4 compatibility, it will - * call the constructor, when a new instance is created. - * - * @param string $srcenc source charset encoding, use NULL (default) to use - * whatever the document specifies - * @param string $mode how this parser object should work, "event" for - * startelement/endelement-type events, "func" - * to have it call functions named after elements - * @param string $tgtenc a valid target encoding - */ - function XML_Parser($srcenc = null, $mode = 'event', $tgtenc = null) - { - XML_Parser::__construct($srcenc, $mode, $tgtenc); - } - // }}} // {{{ php5 constructor /** @@ -224,7 +204,7 @@ * to have it call functions named after elements * @param string $tgtenc a valid target encoding */ - function __construct($srcenc = null, $mode = 'event', $tgtenc = null) + function XML_Parser($srcenc = null, $mode = 'event', $tgtenc = null) { $this->PEAR('XML_Parser_Error'); @@ -610,10 +590,10 @@ * * @return XML_Parser_Error reference to the error object **/ - function &raiseError($msg = null, $ecode = 0) + function &raiseError($msg = NULL, $ecode = NULL, $mode = NULL, $options = NULL, $userinfo = NULL, $error_class = NULL, $skipmsg = false) { $msg = !is_null($msg) ? $msg : $this->parser; - $err = &new XML_Parser_Error($msg, $ecode); + $err = new XML_Parser_Error($msg, $ecode); return parent::raiseError($err); } debian/rules0000755000000000000000000000034211757444573010266 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=phppear --with phppear override_dh_link: dh_link -O--buildsystem=phppear ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) chmod +x ./debian/tests_run ./debian/tests_run endif