@@ -39,7 +39,7 @@ class PhpXmlRpc
3939 'unsupported_option ' => 20 , // client
4040 // the following 3 are meant to give greater insight than 'invalid_return'. They use the same code for BC,
4141 // but you can override their value in your own code
42- 'invalid_xml ' => 2 , // client
42+ 'invalid_xml ' => 2 , // client (and server, when interop mode is enabled)
4343 'xml_not_compliant ' => 2 , // client
4444 'xml_parsing_error ' => 2 , // client
4545
@@ -129,7 +129,8 @@ class PhpXmlRpc
129129 * @var int
130130 * Let XML parse errors start at 100.
131131 * The final code will be 100 + X, with X coming from https://www.php.net/manual/en/xml.error-codes.php.
132- * Values are known to go from 1 (XML_ERROR_NO_MEMORY) to 21 (XML_ERROR_EXTERNAL_ENTITY_HANDLING)
132+ * Values are known to go from 1 (XML_ERROR_NO_MEMORY) to 21 (XML_ERROR_EXTERNAL_ENTITY_HANDLING).
133+ * Used only server-side
133134 */
134135 public static $ xmlrpcerrxml = 100 ;
135136
@@ -251,6 +252,11 @@ public static function useInteropFaults()
251252 self ::$ xmlrpcerruser = -Interop::$ xmlrpcerruser ;
252253 }
253254
255+ public static function isUsingInteropFaults ()
256+ {
257+ return self ::$ xmlrpcerruser == -Interop::$ xmlrpcerruser ;
258+ }
259+
254260 /**
255261 * A function to be used for compatibility with legacy code: it creates all global variables which used to be declared,
256262 * such as library version etc...
0 commit comments