debian/0000755000000000000000000000000011756664771007212 5ustar debian/tests_run0000755000000000000000000000031411756664771011164 0ustar #!/bin/sh set -e pear_pkg=`ls | grep HTTP_Upload` 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/control0000644000000000000000000000215411756664771010617 0ustar Source: php-http-upload Section: web Priority: optional Maintainer: PKG-PHP-PEAR team Uploaders: Thomas Goirand Build-Depends: debhelper (>= 8), pkg-php-tools, phpunit (>= 3.6) Build-Depends-Indep: php-pear Standards-Version: 3.9.3 Dm-Upload-Allowed: yes Vcs-Browser: http://git.debian.org/?p=pkg-php/php-http-upload.git Vcs-Git: http://git.debian.org/git/pkg-php/php-http-upload.git Homepage: http://pear.php.net/package/HTTP_Upload Package: php-http-upload Architecture: all Depends: ${misc:Depends}, php-pear Description: Easy and secure management of files submitted via HTML Forms This class provides an advanced file uploader system for file uploads made from html forms. It features: handling from one file to multiple files, safe file copying from tmp dir, easy detecting mechanism of valid upload, missing upload or error, giving extensive information about the uploaded file, renaming uploaded files in different ways (as it is, safe or unique), validating allowed file extensions, multiple languages error messages support (es, en, de, fr, it, nl, pt_BR). debian/changelog0000644000000000000000000000312711756664771011067 0ustar php-http-upload (1.0.0b2-2) unstable; urgency=low * Now running unit tests at build time (depends on phpunit >= 3.6). * Fixed unit tests (patching them). -- Thomas Goirand Tue, 22 May 2012 10:20:21 +0000 php-http-upload (1.0.0b2-1) unstable; urgency=low * New upstream release, avoiding the use of the ereg function. * Fixed Vcs fields (Closes: #638519). * Standards-Version is now 3.9.3. * Updated copyright machine readable format URL. -- Thomas Goirand Thu, 08 Mar 2012 19:50:49 +0800 php-http-upload (1.0.0b1-3) unstable; urgency=low * Switching to 3.0 (quilt) source format. * Switching debian/copyright to DEP5. * Switching to pkg-php-tools and dh 8 sequencer. * Now using Maintainer: PKG-PHP-PEAR team as maintainer. * Added a debian/gbp.conf. * Standards-Version: is now 3.9.2 (no change). -- Thomas Goirand Sat, 28 Jan 2012 16:27:47 +0800 php-http-upload (1.0.0b1-2) unstable; urgency=low * Typo in the short description: s/managment/management/ (LP: #299131). -- Thomas Goirand Sun, 11 Jul 2010 01:24:49 +0800 php-http-upload (1.0.0b1-1) unstable; urgency=low * New upstream release. * Bumped Standard-Version. * Moved php-pear from Build-Depends to Build-Depends-Indep. * Added Homepage and Vcs-Browser field. * Rewrote the debian/copyright properly. -- Thomas Goirand Mon, 28 Dec 2009 00:48:17 +0800 php-http-upload (0.9.1-1) unstable; urgency=low * Initial release (Closes: #435150) -- Thomas Goirand Sun, 29 Jul 2007 23:39:47 +0800 debian/watch0000644000000000000000000000016511756664771010245 0ustar version=3 http://pear.php.net/package/HTTP_Upload/download http://download.pear.php.net/package/HTTP_Upload-(.*).tgz debian/compat0000644000000000000000000000000211756664771010410 0ustar 8 debian/gbp.conf0000644000000000000000000000016411756664771010632 0ustar [DEFAULT] upstream-branch = upstream-sid debian-branch = debian-sid [git-buildpackage] export-dir = ../build-area/ debian/source/0000755000000000000000000000000011756664771010512 5ustar debian/source/format0000644000000000000000000000001411756664771011720 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000257011756664771011151 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: HTTP_Upload Upstream-Contact: Thomas V.V.Cox Source: http://pear.php.net/package/HTTP_Upload/download Files: debian/* Copyright: 2006-2012, Thomas Goirand License: LGPL-2.1 Files: * Copyright: (c) 2001-2009, Thomas V.V.Cox (c) 2001-2009, Christian Wenz (c) 2001-2009, Antonio Carlos Venancio Junior http://pear.php.net/account-mail.php?handle=antonio License: LGPL-2.1 License: LGPL-2.1 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU Lesser General Public License (LGPL) v2.1 may be found in /usr/share/common-licenses/LGPL-2.1. debian/patches/0000755000000000000000000000000011756664771010641 5ustar debian/patches/series0000644000000000000000000000002711756664771012055 0ustar Fixes-unit-tests.patch debian/patches/Fixes-unit-tests.patch0000644000000000000000000000706011756664771015060 0ustar Description: Fixes unit tests Author: Thomas Goirand Forwarded: https://pear.php.net/bugs/bug.php?id=19430 --- php-http-upload-1.0.0b2.orig/HTTP_Upload-1.0.0b2/tests/toolarge-1.phpt +++ php-http-upload-1.0.0b2/HTTP_Upload-1.0.0b2/tests/toolarge-1.phpt @@ -20,20 +20,20 @@ Valid: bool(false) Missing: bool(false) Error: bool(true) array(8) { - ["real"]=> + 'real' => string(3) "10b" - ["name"]=> + 'name' => string(3) "10b" - ["form_name"]=> + 'form_name' => string(8) "userfile" - ["ext"]=> + 'ext' => NULL - ["tmp_name"]=> - string(28) "%s" - ["size"]=> + 'tmp_name' => + string(%d) "%s" + 'size' => int(10) - ["type"]=> + 'type' => string(10) "text/plain" - ["error"]=> + 'error' => string(9) "TOO_LARGE" } --- php-http-upload-1.0.0b2.orig/HTTP_Upload-1.0.0b2/tests/normal_upload.phpt +++ php-http-upload-1.0.0b2/HTTP_Upload-1.0.0b2/tests/normal_upload.phpt @@ -23,21 +23,21 @@ Missing: bool(false) Error: bool(false) MoveError: bool(false) array(8) { - ["real"]=> + 'real' => string(3) "10b" - ["name"]=> + 'name' => string(3) "10b" - ["form_name"]=> + 'form_name' => string(8) "userfile" - ["ext"]=> + 'ext' => string(0) "" - ["tmp_name"]=> - string(28) "%s" - ["size"]=> + 'tmp_name' => + string(%d) "%s" + 'size' => int(10) - ["type"]=> + 'type' => string(10) "text/plain" - ["error"]=> + 'error' => NULL } bool(true) --- php-http-upload-1.0.0b2.orig/HTTP_Upload-1.0.0b2/tests/setName.phpt +++ php-http-upload-1.0.0b2/HTTP_Upload-1.0.0b2/tests/setName.phpt @@ -29,21 +29,21 @@ string(5) "my10b" MoveError: bool(false) string(5) "my10b" array(8) { - ["real"]=> + 'real' => string(3) "10b" - ["name"]=> + 'name' => string(5) "my10b" - ["form_name"]=> + 'form_name' => string(8) "userfile" - ["ext"]=> + 'ext' => NULL - ["tmp_name"]=> - string(28) "%s" - ["size"]=> + 'tmp_name' => + string(%d) "%s" + 'size' => int(10) - ["type"]=> + 'type' => string(10) "text/plain" - ["error"]=> + 'error' => NULL } bool(true) --- php-http-upload-1.0.0b2.orig/HTTP_Upload-1.0.0b2/tests/toolarge-2.phpt +++ php-http-upload-1.0.0b2/HTTP_Upload-1.0.0b2/tests/toolarge-2.phpt @@ -18,25 +18,24 @@ echo "Error: "; var_dump($file->isErro var_dump($file->getProp()); ?> --EXPECTF-- -Warning: POST Content-Length of 338 bytes exceeds the limit of 5 bytes in Unknown on line 0 Valid: bool(false) Missing: bool(false) Error: bool(true) array(8) { - ["real"]=> + 'real' => string(6) "_error" - ["name"]=> + 'name' => string(6) "_error" - ["form_name"]=> + 'form_name' => NULL - ["ext"]=> + 'ext' => NULL - ["tmp_name"]=> + 'tmp_name' => NULL - ["size"]=> + 'size' => NULL - ["type"]=> + 'type' => NULL - ["error"]=> + 'error' => string(9) "TOO_LARGE" } --- php-http-upload-1.0.0b2.orig/HTTP_Upload-1.0.0b2/tests/toolarge-3.phpt +++ php-http-upload-1.0.0b2/HTTP_Upload-1.0.0b2/tests/toolarge-3.phpt @@ -18,25 +18,24 @@ echo "Error: "; var_dump($file->isErro var_dump($file->getProp()); ?> --EXPECTF-- -Notice: upload_max_filesize of 5 bytes exceeded - file [userfile=10b] not saved in Unknown on line 0 Valid: bool(false) Missing: bool(false) Error: bool(true) array(8) { - ["real"]=> + 'real' => string(3) "10b" - ["name"]=> + 'name' => string(3) "10b" - ["form_name"]=> + 'form_name' => string(8) "userfile" - ["ext"]=> + 'ext' => NULL - ["tmp_name"]=> + 'tmp_name' => string(0) "" - ["size"]=> + 'size' => int(0) - ["type"]=> + 'type' => string(0) "" - ["error"]=> + 'error' => string(9) "TOO_LARGE" } debian/rules0000755000000000000000000000035611756664771010276 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 $(pear_pkg) endif