Fix E_STRICT error: we explicitely have to cast resources to (int)
This commit is contained in:
parent
dfaf1d026a
commit
69596125d7
1 changed files with 4 additions and 4 deletions
|
@ -120,14 +120,14 @@ function startElement($parser, $name, $attrs) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!isset($depth[$parser])) {
|
if (!isset($depth[(int)$parser])) {
|
||||||
$depth[$parser] = 0;
|
$depth[(int)$parser] = 0;
|
||||||
}
|
}
|
||||||
$depth[$parser]++;
|
$depth[(int)$parser]++;
|
||||||
}
|
}
|
||||||
|
|
||||||
function endElement($parser, $name) {
|
function endElement($parser, $name) {
|
||||||
global $depth;
|
global $depth;
|
||||||
$depth[$parser]--;
|
$depth[(int)$parser]--;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue