XML error: Invalid document end at line 1 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 2.x (https://forum.codeigniter.com/forumdisplay.php?fid=18) +--- Thread: XML error: Invalid document end at line 1 (/showthread.php?tid=67926) |
XML error: Invalid document end at line 1 - joergy - 04-25-2017 Under PHP 7 XML-RPC no longer works. You will see this error. The two reasons: XML-RPC expects its data in $HTTP_RAW_POST_DATA, which isn't available in PHP 7 in CI_Xmlrpcs::parseRequest() find its usage and get the data from PHP Code: file_get_contents("php://input") PHP 7 doesn't understand this no longer: PHP Code: $CI->$method_parts['1']($m); PHP Code: call_user_func(array($CI, $method_parts[1]), $m); The same probably holds for: PHP Code: $this->object->$method_parts['1']($m); PHP Code: call_user_func(array($this->object, $method_parts[1]), $m); Well, I don't know, whether this is fixed in CI3 ... Hope this helps. joergy RE: XML error: Invalid document end at line 1 - Narf - 04-25-2017 PHP 7 was released in December 2015. CI 2 was abandoned in October 2015. RE: XML error: Invalid document end at line 1 - joergy - 04-26-2017 (04-25-2017, 11:35 AM)Narf Wrote: PHP 7 was released in December 2015. So what? (its all known, but what about XML-RPC?) RE: XML error: Invalid document end at line 1 - ciadmin - 04-26-2017 It looks like this has been adressed in CI3 ... 1) It references $CI->input->raw_input_stream 2) Method calls look like call_user_func(array($this, $method_parts[1]), $m) I am using XML-RPC with CI3 and PHP5/7 RE: XML error: Invalid document end at line 1 - Narf - 04-26-2017 (04-26-2017, 08:02 AM)joergy Wrote:(04-25-2017, 11:35 AM)Narf Wrote: PHP 7 was released in December 2015. So what?! You're talking about an issue in CI 2 that did not exist at the time when CI 2 was retired. |