Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Warning: each(): Node no longer exists in library\Zend\XmlRpc\Value.php on line 495 #738

Open
dr-abadis opened this issue May 25, 2017 · 2 comments

Comments

@dr-abadis
Copy link

dr-abadis commented May 25, 2017

Hi. I have a problem in xmlrpc call. The error message says

Warning: each(): Node no longer exists in library\Zend\XmlRpc\Value.php on line 495

which is related to

protected static function _extractTypeAndValue(SimpleXMLElement $xml, &$type, &$value) { list($type, $value) = each($xml);

    if (!$type and $value === null) {
        $namespaces = array('ex' => 'http://ws.apache.org/xmlrpc/namespaces/extensions');
        foreach ($namespaces as $namespaceName => $namespaceUri) {
            $namespaceXml = $xml->children($namespaceUri);
            list($type, $value) = each($namespaceXml);
            if ($type !== null) {
                $type = $namespaceName . ':' . $type;
                break;
            }
        }
    }

Is it a bug or am I doing sth wrong?

@dr-abadis
Copy link
Author

dr-abadis commented Jun 8, 2017

After some debugging I found that the problem is made in version 1.12.4 . these 3 lines is added in that version:

//if there is a child element, try to parse type for it
 if (!$type && $value instanceof SimpleXMLElement) {
            self::_extractTypeAndValue($value->children(), $type, $value);
        }

which makes a recursive call and creates the problem!
Any body here to help?

@froschdesign
Copy link
Member

We are sorry, but ZF1 reaches its End of Life (EOL).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants