Getting rid of "Warning: count(): Parameter must be an array or an object that implements Countable" that Php 7.2 throws
xml_set_default_handler($parser, 'xmlrpc_dh');\r
\r
// first error check: xml not well formed\r
- if(!xml_parse($parser, $data, count($data)))\r
+ if(!xml_parse($parser, $data, 1))\r
{\r
// thanks to Peter Kocks <peter.kocks@baygate.com>\r
if((xml_get_current_line_number($parser)) == 1)\r
}\r
}\r
\r
-?>
\ No newline at end of file
+?>\r