diff --git a/pg2mysql-1.9-php-5.5.patch b/pg2mysql-1.9-php-5.5.patch new file mode 100644 index 0000000..1dca35c --- /dev/null +++ b/pg2mysql-1.9-php-5.5.patch @@ -0,0 +1,38 @@ +diff -Nru pg2mysql-1.9.orig/pg2mysql.inc.php pg2mysql-1.9/pg2mysql.inc.php +--- pg2mysql-1.9.orig/pg2mysql.inc.php 2011-07-20 18:24:04.000000000 +0200 ++++ pg2mysql-1.9/pg2mysql.inc.php 2014-07-08 16:48:24.214418090 +0200 +@@ -126,11 +126,11 @@ + + } + +-function pg2mysql(&$input, $header=true) ++function pg2mysql($input, $header=true) + { + global $config; + +- if(is_array(&$input)) { ++ if(is_array($input)) { + $lines=$input; + } else { + $lines=split("\n",$input); +diff -Nru pg2mysql-1.9.orig/pg2mysql.php pg2mysql-1.9/pg2mysql.php +--- pg2mysql-1.9.orig/pg2mysql.php 2011-07-20 18:21:01.000000000 +0200 ++++ pg2mysql-1.9/pg2mysql.php 2014-07-08 16:48:20.946422029 +0200 +@@ -32,7 +32,7 @@ +

+
+ +- +
+ +- + diff --git a/pg2mysql.spec b/pg2mysql.spec index 1e32fbd..fb3adb8 100644 --- a/pg2mysql.spec +++ b/pg2mysql.spec @@ -22,7 +22,7 @@ Name: %{?sitename:%sitename-website-}pg2mysql Version: 1.9 -Release: 1mamba +Release: 2mamba Summary: A PHP interface do convert dumps from PostgreSQL to MySQL Group: Applications/Web Vendor: openmamba @@ -30,6 +30,7 @@ Distribution: openmamba Packager: Silvan Calarco URL: http://www.lightbox.ca/pg2mysql Source: http://www.lightbox.ca/pg2mysql/pg2mysql-%{version}.tar.bz2 +Patch0: pg2mysql-1.9-php-5.5.patch License: GPL ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END @@ -41,6 +42,7 @@ A PHP interface do convert dumps from PostgreSQL to MySQL. %prep %setup -q +%patch0 -p1 %build @@ -58,5 +60,8 @@ cp -a * %{buildroot}%{installdir} %{installdir}/* %changelog +* Tue Jul 08 2014 Silvan Calarco 1.9-2mamba +- added patch tested against php 5.5 + * Tue Jul 08 2014 Silvan Calarco 1.9-1mamba - package created using the webbuild interface