mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 20:20:53 +00:00
Replace variable function calls with call_user_func().
Fixes "Call to undefined function \Curl\Decoder::decodeXml()" in PHP 5.3, 5.4, 5.5, 5.6, hhvm.
This commit is contained in:
+2
-2
@@ -1331,12 +1331,12 @@ class Curl
|
||||
} elseif (preg_match($this->xmlPattern, $response_headers['Content-Type'])) {
|
||||
$xml_decoder = $this->xmlDecoder;
|
||||
if ($xml_decoder) {
|
||||
$response = $xml_decoder($response);
|
||||
$response = call_user_func($xml_decoder, $response);
|
||||
}
|
||||
} else {
|
||||
$default_decoder = $this->defaultDecoder;
|
||||
if ($default_decoder) {
|
||||
$response = $default_decoder($response);
|
||||
$response = call_user_func($default_decoder, $response);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user