Updating for PHP5.4

- Fixing strict errors.
- Fixing call time pass by reference as its been removed in PHP5.4
- Fix assign new as a reference, which has been removed.
This commit is contained in:
mark_story 2011-11-12 20:43:55 -05:00
parent 0c0bb60486
commit 0a0a09920b
15 changed files with 30 additions and 50 deletions

View file

@ -546,9 +546,10 @@ class CakeSchema extends Object {
$difference[$key] = $value;
continue;
}
$compare = strval($value);
$correspondingValue = strval($correspondingValue);
if ($compare === $correspondingValue) {
if (is_array($value) && is_array($correspondingValue)) {
continue;
}
if ($value === $correspondingValue) {
continue;
}
$difference[$key] = $value;