Fix E_STRICT error: we explicitely have to cast resources to (int)

This commit is contained in:
Christian Weiske 2013-03-21 18:09:37 +01:00
parent dfaf1d026a
commit 69596125d7

View File

@ -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]--;
} }
?> ?>