Welcome Guest, Not a member yet? Register   Sign In
XML error: Invalid document end at line 1
#1

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"
instead.

PHP 7 doesn't understand this no longer:
PHP Code:
$CI->$method_parts['1']($m); 
use
PHP Code:
call_user_func(array($CI$method_parts[1]), $m); 
instead.

The same probably holds for:
PHP Code:
$this->object->$method_parts['1']($m); 
use
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
Reply
#2

PHP 7 was released in December 2015.
CI 2 was abandoned in October 2015.
Reply
#3

(04-25-2017, 11:35 AM)Narf Wrote: PHP 7 was released in December 2015.
CI 2 was abandoned in October 2015.

So what? (its all known, but what about XML-RPC?)
Reply
#4

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
Reply
#5

(04-26-2017, 08:02 AM)joergy Wrote:
(04-25-2017, 11:35 AM)Narf Wrote: PHP 7 was released in December 2015.
CI 2 was abandoned in October 2015.

So what? (its all known, but what about XML-RPC?)

So what?!

You're talking about an issue in CI 2 that did not exist at the time when CI 2 was retired.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB