// The encoding used internally by PHP.
// String values received as xml will be converted to this, and php strings will be converted to xml
- // as if having been coded with this
- public static $xmlrpc_internalencoding = "ISO-8859-1"; // TODO: maybe this would be better as UTF-8, or atleast configurable?
+ // as if having been coded with this.
+ // Valid also when defining names of xmlrpc methods
+ public static $xmlrpc_internalencoding = "UTF-8";
public static $xmlrpcName = "XML-RPC for PHP";
public static $xmlrpcVersion = "4.0.0.beta";
$GLOBALS[$name] = $value;
}
+ // NB: all the variables exported into the global namespace below here do NOT guarantee 100%
+ // compatibility, as they are NOT reimported back during calls to importGlobals()
+
$reflection = new \ReflectionClass('PhpXmlRpc\Value');
foreach ($reflection->getStaticProperties() as $name => $value) {
$GLOBALS[$name] = $value;
}
+
+ $parser = new Helper\XMLParser();
+ $reflection = new \ReflectionClass('PhpXmlRpc\Helper\XMLParser');
+ foreach ($reflection->getProperties(\ReflectionProperty::IS_PUBLIC) as $name => $value) {
+ if (in_array($value->getName(), array('xmlrpc_valid_parents')))
+ {
+ $GLOBALS[$value->getName()] = $value->getValue($parser);
+ }
+ }
+
+ $charset = Helper\Charset::instance();
+ $GLOBALS['xml_iso88591_Entities'] = $charset->getEntities('iso88591');
}
/**
}
}
}
+
}