
In detail, I found the following errors/problems so far:
- Fatal error: func_get_args(): Can't be used as a function parameter in /.../trackmania-ws.php on line 72 (and other lines)
This error is caused due to using the func_get_args() as a parameter for another method call, and seems not to be possible as of PHP 5.2.
Workaround:
Replace all similar lines towith e.g.Code: Select all
return $this->executeGET('/tmf/players/%s/', func_get_args());
Code: Select all
$params = get_func_args(); return $this->executeGET('/tmf/players/%s/', $params);
- Fatal error: Call to undefined function json_last_error() in /.../trackmania-ws.php on line 474
json_last_error() has been introduced with PHP 5.3, and seems not to have any replacement in PHP 5.2 though. I think the only possibility on this point is to remove the error handling in case of PHP 5.2, and to only differentiate between "well formed JSON" and "malformed JSON" without any deeper debugging information.
It would be nice, if you can handle these errors to make the SDK compatible to PHP 5.2, rather than changing the requirements to PHP 5.3

FT»Marcel