patch #1253465, avoid error messages for unset variables in PHP functions that require a parameter passed by reference
This commit is contained in:
@@ -226,7 +226,7 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
|
||||
$type = $row['Type'];
|
||||
// reformat mysql query output - staybyte - 9. June 2001
|
||||
// loic1: set or enum types: slashes single quotes inside options
|
||||
if (eregi('^(set|enum)\((.+)\)$', $type, $tmp)) {
|
||||
if (eregi('^(set|enum)\((.+)\)$', $type, $tmp = array())) {
|
||||
$tmp[2] = substr(ereg_replace('([^,])\'\'', '\\1\\\'', ',' . $tmp[2]), 1);
|
||||
$type = $tmp[1] . '(' . str_replace(',', ', ', $tmp[2]) . ')';
|
||||
$type_nowrap = '';
|
||||
@@ -243,9 +243,9 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
|
||||
$type = ' ';
|
||||
}
|
||||
|
||||
$binary = eregi('BINARY', $row['Type'], $test);
|
||||
$unsigned = eregi('UNSIGNED', $row['Type'], $test);
|
||||
$zerofill = eregi('ZEROFILL', $row['Type'], $test);
|
||||
$binary = eregi('BINARY', $row['Type'], $test = array());
|
||||
$unsigned = eregi('UNSIGNED', $row['Type'], $test = array());
|
||||
$zerofill = eregi('ZEROFILL', $row['Type'], $test = array());
|
||||
}
|
||||
$strAttribute = ' ';
|
||||
if ($binary) {
|
||||
|
Reference in New Issue
Block a user