mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-29 19:54:49 +00:00
Allow specifying xml decoder options when calling Curl::setDefaultXmlDecoder
This commit is contained in:
@@ -35,11 +35,16 @@ class Decoder
|
||||
* Decode XML
|
||||
*
|
||||
* @access public
|
||||
* @param $response
|
||||
* @param $data
|
||||
* @param $class_name
|
||||
* @param $options
|
||||
* @param $ns
|
||||
* @param $is_prefix
|
||||
*/
|
||||
public static function decodeXml($response)
|
||||
public static function decodeXml()
|
||||
{
|
||||
$xml_obj = @simplexml_load_string($response);
|
||||
$args = func_get_args();
|
||||
$xml_obj = @call_user_func_array('simplexml_load_string', $args);
|
||||
if (!($xml_obj === false)) {
|
||||
$response = $xml_obj;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user