pg2mysql/pg2mysql-1.9-php-5.5.patch

39 lines
1000 B
Diff

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