Skip to content

Commit 64cd2ba

Browse files
authored
NativeParser stops processing if value in array evaluates to false (#85)
The while loop breaks if any value in the array being processed evaluates to false, this causes any information that proceeds the element to not be parsed.
1 parent 19527f4 commit 64cd2ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fXmlRpc/Parser/NativeParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ public function parse($xmlString)
7070
}
7171

7272
$toBeVisited = [&$result];
73-
while (isset($toBeVisited[0]) && $value = &$toBeVisited[0]) {
74-
73+
while (isset($toBeVisited[0])) {
74+
$value = &$toBeVisited[0];
7575
$type = gettype($value);
7676
if ($type === 'object') {
7777
$xmlRpcType = $value->{'xmlrpc_type'};

0 commit comments

Comments
 (0)