debian/0000755000000000000000000000000011756655035007203 5ustar debian/lintian-overrides0000644000000000000000000000007011756655035012561 0ustar php-db: capitalization-error-in-description mysql MySQL debian/tests_run0000755000000000000000000000030311756655035011153 0ustar #!/bin/sh set -e pear_pkg=`ls | grep DB` cd ${pear_pkg} PKG_ROOT=`pwd` cd tests for i in *.phpt ; do echo Testing with ${i} phpunit -d include_path=".:/usr/share/php:${PKG_ROOT}" ${i} done debian/control0000644000000000000000000000333511756655035010612 0ustar Source: php-db Section: php Priority: optional Maintainer: PKG-PHP-PEAR team Uploaders: Thijs Kinkhorst , Thomas Goirand Build-Depends: debhelper (>= 8), pkg-php-tools, phpunit (>= 3.6) Build-Depends-Indep: php-pear (>= 5.4) Standards-Version: 3.9.3 Vcs-Browser: http://git.debian.org/?p=pkg-php/php-db.git Vcs-Git: http://git.debian.org/git/pkg-php/php-db.git Homepage: http://pear.php.net/package/DB Package: php-db Architecture: all Depends: php-pear, ${misc:Depends} Description: PHP PEAR Database Abstraction Layer DB is a database abstraction layer providing: * an OO-style query API * portability features that make programs written for one DBMS work with other DBMS's * a DSN (data source name) format for specifying database servers * prepare/execute (bind) emulation for databases that don't support it natively * a result object for each query response * portable error codes * sequence emulation * sequential and non-sequential row fetching as well as bulk fetching * formats fetched rows as associative arrays, ordered arrays or objects * row limit support * transactions support * table information interface * DocBook and phpDocumentor API documentation . DB layers itself on top of PHP's existing database extensions. . Drivers for the following extensions pass the complete test suite and provide interchangeability when all of the database's portability options are enabled: fbsql, ibase, informix, msql, mssql, mysql, mysqli, oci8, odbc, pgsql, sqlite and sybase. . There is also a driver for the dbase extension, but it can't be used interchangeably because dbase doesn't support many standard DBMS features. debian/changelog0000644000000000000000000000600711756655035011060 0ustar php-db (1.7.14-2) unstable; urgency=low * Activates build time unit testings. * Patches unit testings to remove E_STRICT errors. -- Thomas Goirand Tue, 22 May 2012 09:16:32 +0000 php-db (1.7.14-1) unstable; urgency=low * New upstream release 1.7.14 [ Thomas Goirand ] * Switched the package to Git instead of SVN (changed Vcs fields). * Replaced debian/svn-deblayout by a debian/gbp.conf. * Switching to pkg-php-tools (rewrote debian/rules) (Closes: #515327). * Added myself as uploader. * Switching to format 3.0 (quilt). * Increased compat level to 8. * Removed now useless debian/dirs. * Removed now useless debian/docs. * Switched debian/copyright to format 1.0. * Fixed debian/watch file. * Adds a patch to declare isError and isManip as static (Closes: #670242). * Using pkg-php-pear@lists.alioth.debian.org as maintainer (Closes: #656974). * Removed now obsolete Replaces: php4-pear (<< 4:4.4.0-0) in debian/control. * Added missing ${misc:Depends} dependency. * Build-Depends on php-pear (>= 5.4). This probably is too high, but I do want to express the fact that building in Squeeze wont work without at least some work (a test showed it wouldn't). * Bumps Standards-Version to 3.9.3 (no change but the above). [ Thijs Kinkhorst ] * Override false-positive spelling-error-in-description Lintian warning (we mean the PHP module). -- Thomas Goirand Wed, 25 Apr 2012 19:28:39 +0800 php-db (1.7.13-2) unstable; urgency=low * When using pear during build, we must of course also build-depend on php-pear (Closes: #462518). -- Thijs Kinkhorst Fri, 25 Jan 2008 19:23:13 +0100 php-db (1.7.13-1) unstable; urgency=low [ Martin Lohmeier ] * New upstream release. + Fixes parsing of postgresql FETCH (Closes: #357098) + Fixes @package_version@ variable (Closes: #384269). * Updated to PHP License 3.01 as upstream did (Closes: #332608) * Add debian/watch file. * Add Vcs-Svn field to debian/control. * Updated to debhelper 6. * Updated to standard version 3.7.3. * Add Homepage to debian/control. * New build system using PEAR. [ Thijs Kinkhorst ] * Even newer upstream release. * Cleanup packaging. * Do not install tests, these are not really relevant in the binary package (Closes: #457437). * Update package description. -- Thijs Kinkhorst Sun, 20 Jan 2008 18:25:25 +0100 php-db (1.7.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. * Clean up some lintian warnings about the description and some scripts that were not made executable. -- Adam Conrad Fri, 29 Jul 2005 08:36:42 +1000 php-db (1.7.6-1) unstable; urgency=low * Initial release. -- Ondřej Surý Thu, 21 Jul 2005 09:45:07 +0200 debian/watch0000644000000000000000000000015211756655035010232 0ustar version=3 http://pear.php.net/package/DB/download http://download.pear.php.net/package/DB-([\d.RC]+)\.tgz debian/compat0000644000000000000000000000000211756655035010401 0ustar 8 debian/gbp.conf0000644000000000000000000000016411756655035010623 0ustar [DEFAULT] upstream-branch = upstream-sid debian-branch = debian-sid [git-buildpackage] export-dir = ../build-area/ debian/source/0000755000000000000000000000000011756655035010503 5ustar debian/source/format0000644000000000000000000000001411756655035011711 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000664311756655035011147 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: DB Upstream-Contact: Daniel Convissor , Adam Harvey Source: http://pear.php.net/package/DB/download Files: debian/* Copyright: 2005, Ondrej Sury 2005, Adam Conrad 2008, Thijs Kinkhorst 2012, Thomas Goirand License: PHP 3.01 Files: * Copyright: 1999-2006, The PHP Group, All rights reserved. Daniel Convissor Adam Harvey Stig Bakken Tomas V.V.Cox License: PHP 3.01 License: PHP 3.01 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 . debian/patches/0000755000000000000000000000000011756655035010632 5ustar debian/patches/series0000644000000000000000000000012211756655035012042 0ustar static-function-for-isError-and-isManip Switches-off-E_STRICT-in-unit-tests.patch debian/patches/static-function-for-isError-and-isManip0000644000000000000000000000137211756655035020237 0ustar Description: Adds static in front of isError and isManip functions Author: Thomas Goirand Bug-Debian: http://bugs.debian.org/670242 Forwarded: no --- php-db-1.7.14.orig/DB-1.7.14/DB.php +++ php-db-1.7.14/DB-1.7.14/DB.php @@ -589,7 +589,7 @@ class DB * * @return bool whether $value is DB_Error object */ - function isError($value) + static function isError($value) { return is_object($value) && is_a($value, 'DB_Error'); } @@ -625,7 +625,7 @@ class DB * * @return boolean whether $query is a data manipulation query */ - function isManip($query) + static function isManip($query) { $manips = 'INSERT|UPDATE|DELETE|REPLACE|' . 'CREATE|DROP|' debian/patches/Switches-off-E_STRICT-in-unit-tests.patch0000644000000000000000000000260211756655035020207 0ustar Description: Switches off E_STRICT in error_reporting() unit tests Author: Thomas Goirand Forwarded: no --- php-db-1.7.14.orig/DB-1.7.14/tests/db_error.phpt +++ php-db-1.7.14/DB-1.7.14/tests/db_error.phpt @@ -35,7 +35,7 @@ function test_error_handler($errno, $err print "\n$prefix: $errmsg in " . basename($file) . " on line XXX\n"; } -error_reporting(E_ALL); +error_reporting(E_ALL & ~E_STRICT); set_error_handler('test_error_handler'); print "testing different error codes...\n"; --- php-db-1.7.14.orig/DB-1.7.14/tests/include.inc +++ php-db-1.7.14/DB-1.7.14/tests/include.inc @@ -21,7 +21,7 @@ * @link http://pear.php.net/package/DB */ -error_reporting(E_ALL); +error_reporting(E_ALL & ~E_STRICT); if (!defined('PATH_SEPARATOR')) { if (stristr(PHP_OS, 'WIN')) { --- php-db-1.7.14.orig/DB-1.7.14/tests/db_error2.phpt +++ php-db-1.7.14/DB-1.7.14/tests/db_error2.phpt @@ -7,7 +7,7 @@ DB::Error 2 require_once dirname(__FILE__) . '/include.inc'; require_once 'DB.php'; -error_reporting(E_ALL); +error_reporting(E_ALL & ~E_STRICT); function myfunc($obj) { print 'myfunc here, obj=' --- php-db-1.7.14.orig/DB-1.7.14/tests/limit.inc +++ php-db-1.7.14/DB-1.7.14/tests/limit.inc @@ -22,7 +22,7 @@ * @link http://pear.php.net/package/DB */ -error_reporting(E_ALL); +error_reporting(E_ALL & ~E_STRICT); /** * Local error callback handler debian/rules0000755000000000000000000000112511756655035010262 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=phppear --with phppear DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ') DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-) DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//') override_dh_link: dh_link -O--buildsystem=phppear ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) chmod +x ./debian/tests_run ./debian/tests_run endif get-orig-source: wget http://download.pear.php.net/package/DB-${DEB_UPSTREAM_VERSION}.tgz -O php-db_${DEB_UPSTREAM_VERSION}.orig.tar.gz