E_ALL fixes.

This commit is contained in:
Rouslan Placella 2011-05-31 19:47:32 +01:00
parent 409dcfcde5
commit e2250a3f99

View File

@ -144,6 +144,15 @@ function getRoutineParameters($parsed_query, $routine_type)
$retval['length'][] = htmlentities($param_length, ENT_QUOTES);
// FIXME: parameter attributes, such as 'UNSIGNED', are currenly silently ignored
}
// Since some indices of $retval may be still undefined, we fill
// them each with an empty array to avoid E_ALL errors in PHP.
foreach (array('dir', 'name', 'type', 'length') as $key => $index) {
if (! isset($retval[$index])) {
$retval[$index] = array();
}
}
return $retval;
} // end getRoutineParameters()