added patch tested against php 5.5 [release 1.9-2mamba;Tue Jul 08 2014]

This commit is contained in:
Silvan Calarco 2024-01-06 09:57:57 +01:00
parent 010dccc113
commit 9e0b938038
2 changed files with 44 additions and 1 deletions

View 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
}
?>

View File

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