--- phpreports-0.4.9.orig/database/db_oracle.php +++ phpreports-0.4.9/database/db_oracle.php @@ -28,7 +28,7 @@ function db_fetch($oStmt) { $aArray = Array(); - if(!@ociFetchInto($oStmt,&$aArray,OCI_ASSOC+OCI_RETURN_NULLS)) + if(!@ociFetchInto($oStmt,$aArray,OCI_ASSOC+OCI_RETURN_NULLS)) return false; return $aArray; } --- phpreports-0.4.9.orig/database/db_odbc.php +++ phpreports-0.4.9/database/db_odbc.php @@ -70,11 +70,11 @@ $rs_assoc = Array(); if(PHP_VERSION>"4.1"){ if($rownumber<0) - odbc_fetch_into($result,&$rs); + odbc_fetch_into($result,$rs); else - odbc_fetch_into($result, &$rs, $rownumber); + odbc_fetch_into($result, $rs, $rownumber); }else - odbc_fetch_into($result, $rownumber, &$rs); + odbc_fetch_into($result, $rownumber, $rs); foreach($rs as $key => $value) $rs_assoc[odbc_field_name($result, $key+1)] = $value; --- phpreports-0.4.9.orig/debian/changelog +++ phpreports-0.4.9/debian/changelog @@ -0,0 +1,63 @@ +phpreports (0.4.9-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Update phpreports to PHP 5.4: fix "Call-time pass-by-reference" errors. + Affected files are: ./database/db_oracle.php, database/db_odbc.phpi and + php/PHPReportRow.php (Closes: #658874) + + -- Mònica Ramírez Arceda Sat, 28 Apr 2012 11:48:23 +0200 + +phpreports (0.4.9-2) unstable; urgency=low + + * Remove php4 dependecies packages. + * Updated watch file to version 3. + + -- Fernando Ike de Oliveira Wed, 11 Jul 2007 17:02:25 -0300 + +phpreports (0.4.9-1) unstable; urgency=low + + * New upstream release + * Fix bug (Closes: #432243) + + -- Fernando Ike de Oliveira Sat, 02 Jun 2007 12:13:28 -0300 + +phpreports (0.4.6-1) unstable; urgency=low + + * Depend on php4 | php5 (Closes: #343390) + * Orphan package. + + -- Matthew Palmer Sun, 18 Jun 2006 17:35:08 +1000 + +phpreports (0.3.6-2) unstable; urgency=low + + * Modify the internal PHPReports install path to reflect reality. Thanks + to Patrice W. for pointing out the problem to me. + * Work around and remove some extraneous newlines that were causing + occasional problems. + + -- Matthew Palmer Fri, 25 Feb 2005 10:50:07 +1100 + +phpreports (0.3.6-1) unstable; urgency=low + + * New upstream release (Closes: #289204). + + -- Matthew Palmer Wed, 19 Jan 2005 15:15:35 +1100 + +phpreports (0.3.4-1) unstable; urgency=low + + * New upstream release. Functionality unchanged. + + -- Matthew Palmer Thu, 21 Oct 2004 16:30:28 +1000 + +phpreports (0.3.2-2) unstable; urgency=low + + * Changed the uniqname patch to provide a mechanism for end-users to set + the PHPReport classname instead of making it internal. + + -- Matthew Palmer Fri, 1 Oct 2004 21:55:31 +1000 + +phpreports (0.3.2-1) unstable; urgency=low + + * Initial release. Closes: #213520. + + -- Matthew Palmer Thu, 23 Sep 2004 22:37:04 +1000 --- phpreports-0.4.9.orig/debian/dirs +++ phpreports-0.4.9/debian/dirs @@ -0,0 +1 @@ +usr/share/php/phpreports --- phpreports-0.4.9.orig/debian/links +++ phpreports-0.4.9/debian/links @@ -0,0 +1 @@ +/tmp usr/share/php/phpreports/tmp --- phpreports-0.4.9.orig/debian/compat +++ phpreports-0.4.9/debian/compat @@ -0,0 +1 @@ +4 --- phpreports-0.4.9.orig/debian/watch +++ phpreports-0.4.9/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://sf.net/phpreports/phpreports-(.*)\.(tgz|tar\.gz) debian + --- phpreports-0.4.9.orig/debian/rules +++ phpreports-0.4.9/debian/rules @@ -0,0 +1,48 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DESTDIR=$(CURDIR)/debian/phpreports + +build: + ## Nothing to do ## + +clean: + dh_testdir + dh_testroot + + dh_clean + +install: + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + cp -a PHP* database output php xslt $(DESTDIR)/usr/share/php/phpreports/ + find $(DESTDIR)/usr/share/php -type f | xargs chmod a-x + +# Build architecture-independent files here. +binary-indep: install + dh_testdir + dh_testroot + dh_installdocs + dh_installchangelogs Changelog + dh_link + dh_compress + dh_fixperms + find $(DESTDIR) -name .arch-ids | xargs rm -rf + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: + # Nothing to do here, move along + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- phpreports-0.4.9.orig/debian/control +++ phpreports-0.4.9/debian/control @@ -0,0 +1,19 @@ +Source: phpreports +Section: web +Priority: optional +Maintainer: Fernando Ike de Oliveira +Build-Depends: debhelper (>= 5.0.0) +Standards-Version: 3.7.2 + +Package: phpreports +Architecture: all +Depends: php5, php5-xsl +Recommends: php-pear +Description: XML-based report generator for PHP + A common business need is the ability to generate reports dynamically from + an SQL database and present the information in a tabular fashion. + PHPReports takes an XML definition of the general layout of the report and a + query, and produces a finished report in one of several formats. + . + PHPReports is both a useful report generation package, as well as an + excellent demonstration of the power of XML/XSLT. --- phpreports-0.4.9.orig/debian/copyright +++ phpreports-0.4.9/debian/copyright @@ -0,0 +1,16 @@ +This phpreports package was debianized by Matthew Palmer + in September 2004. + +It was downloaded from http://www.sf.net/projects/phpreports/ + +Upstream Author: Eustaquio Rangel de Oliveira Jr, + Portions copyright Matthew Palmer + +Licence: from the PHPReports manual: "It's under the GPL, you don't need to +pay. Just follow the GPL rules and everybody will be happy." + +On Debian systems, a copy of the GPL can be found at +/usr/share/common-licenses/GPL. + + + --- phpreports-0.4.9.orig/debian/docs +++ phpreports-0.4.9/debian/docs @@ -0,0 +1 @@ +help --- phpreports-0.4.9.orig/debian/README.Debian +++ phpreports-0.4.9/debian/README.Debian @@ -0,0 +1,13 @@ +PHPReports is still relatively early-stage software. It does a pretty good +job of producing HTML reports, but there's still a bit more hair in both the +code and the interfaces than I would like. + +Fairly comprehensive documentation is available from +http://sf.net/project/showfiles.php?group_id=55870&package_id=116673 + +Current gotchas: + +* Some of PHPReports' more advanced features requires + /usr/share/php/phpreports to be web-accessible via some URL. If you want to + use those features, you'll have to create a web alias and then set + PHPREPORTSURL to the alias. --- phpreports-0.4.9.orig/php/PHPReportRow.php +++ phpreports-0.4.9/php/PHPReportRow.php @@ -10,7 +10,7 @@ Add a column in the row */ function addCol(&$oCol_) { - array_push($this->_aCols,&$oCol_); + array_push($this->_aCols,$oCol_); } function &getCols() {