added patch tested against php 5.5 [release 1.9-2mamba;Tue Jul 08 2014]
This commit is contained in:
parent
010dccc113
commit
9e0b938038
38
pg2mysql-1.9-php-5.5.patch
Normal file
38
pg2mysql-1.9-php-5.5.patch
Normal file
@ -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 @@
|
||||
<br><br>
|
||||
<form method=post action="pg2mysql.php">
|
||||
|
||||
-<?
|
||||
+<?php
|
||||
if($_POST['postgresdata'])
|
||||
{
|
||||
$output=pg2mysql(stripslashes($_POST['postgresdata']));
|
||||
@@ -46,7 +46,7 @@
|
||||
<textarea rows=20 cols=80 name=postgresdata></textarea>
|
||||
<br />
|
||||
<input type=submit value="Convert to MySQL">
|
||||
- <?
|
||||
+ <?php
|
||||
}
|
||||
?>
|
||||
|
@ -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 <silvan.calarco@mambasoft.it>
|
||||
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 <silvan.calarco@mambasoft.it> 1.9-2mamba
|
||||
- added patch tested against php 5.5
|
||||
|
||||
* Tue Jul 08 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9-1mamba
|
||||
- package created using the webbuild interface
|
||||
|
Loading…
Reference in New Issue
Block a user