{"action":"created","issue":{"url":"https://api.github.com/repos/fruux/sabre-xml/issues/45","labels_url":"https://api.github.com/repos/fruux/sabre-xml/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/fruux/sabre-xml/issues/45/comments","events_url":"https://api.github.com/repos/fruux/sabre-xml/issues/45/events","html_url":"https://github.com/fruux/sabre-xml/issues/45","id":90721808,"number":45,"title":"Weird xml file makes reader go into infinite loop","user":{"login":"stefanmajoor","id":7164637,"avatar_url":"https://avatars.githubusercontent.com/u/7164637?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanmajoor","html_url":"https://github.com/stefanmajoor","followers_url":"https://api.github.com/users/stefanmajoor/followers","following_url":"https://api.github.com/users/stefanmajoor/following{/other_user}","gists_url":"https://api.github.com/users/stefanmajoor/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanmajoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanmajoor/subscriptions","organizations_url":"https://api.github.com/users/stefanmajoor/orgs","repos_url":"https://api.github.com/users/stefanmajoor/repos","events_url":"https://api.github.com/users/stefanmajoor/events{/privacy}","received_events_url":"https://api.github.com/users/stefanmajoor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-24T16:12:06Z","updated_at":"2015-06-24T16:22:18Z","closed_at":null,"body":"The following file:\r\n\r\n```\r\n<?php\r\nini_set('display_errors', '1');\r\nrequire('vendor/autoload.php');\r\n\r\n$contents = <<<XML\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<definitions>\r\n    <collaboration>\r\n        <participant id=\"sid-A33D08EB-A2DE-448F-86FE-A2B62E98818\" name=\"Company\" processRef=\"sid-A0A6A196-3C9A-4C69-88F6-7ED7DDFDD264\">\r\n            <extensionElements>\r\n                <signavio:signavioMetaData metaKey=\"bgcolor\" />\r\n                \"\"Administrative w\">\r\n                <extensionElements>\r\n                    <signavio:signavioMetaData metaKey=\"bgcolor\" metaValue=\"\"/>\r\n                </extensionElements>\r\n                </lan\r\nXML;\r\n\r\n$xmlReader = new \\Sabre\\Xml\\Reader();\r\n$xmlReader->xml($contents);\r\n$xmlReader->parse();\r\n```\r\n\r\nwhen run does not stop executing. The while loop in the ``` parseInnerTree``` does not stop, since ```$this->nodeType``` always stays at 14 (Significant whitespace) and never reaches the end element. When something is added to the xml the issue still occurs, but when something is removed from the xml a proper error message is thrown indicating that \"Namespace prefix signavio on signavioMetaData is not defined\".\r\n\r\nIt seems to be a bug in PHP itself, however, I have not been able to replicate it without this library. And since I do not known enough about this library to be sure that it is a bug in PHP.\r\n\r\nNote that this bug makes it possible to DDOS the server, since the script gets stuck at 100% CPU.\r\n\r\nMy specifications:\r\n\r\n- Sabre/xml version: 1.0.0\r\n- Server: Ubuntu 15.04\r\n- PHP version : 5.6.4"},"comment":{"url":"https://api.github.com/repos/fruux/sabre-xml/issues/comments/114930708","html_url":"https://github.com/fruux/sabre-xml/issues/45#issuecomment-114930708","issue_url":"https://api.github.com/repos/fruux/sabre-xml/issues/45","id":114930708,"user":{"login":"stefanmajoor","id":7164637,"avatar_url":"https://avatars.githubusercontent.com/u/7164637?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanmajoor","html_url":"https://github.com/stefanmajoor","followers_url":"https://api.github.com/users/stefanmajoor/followers","following_url":"https://api.github.com/users/stefanmajoor/following{/other_user}","gists_url":"https://api.github.com/users/stefanmajoor/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanmajoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanmajoor/subscriptions","organizations_url":"https://api.github.com/users/stefanmajoor/orgs","repos_url":"https://api.github.com/users/stefanmajoor/repos","events_url":"https://api.github.com/users/stefanmajoor/events{/privacy}","received_events_url":"https://api.github.com/users/stefanmajoor/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T16:22:18Z","updated_at":"2015-06-24T16:22:18Z","body":"Also, it is good to know that the currently open pull request fixes the problem."}}