mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 10:46:53 +00:00
Feature: debugging for xmllist included
git-svn-id: https://svn.fhem.de/fhem/trunk@1485 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
589e664a8f
commit
8ed55d37a6
@ -210,3 +210,6 @@ It is not necessary to tell fhem that there are other logs.
|
||||
2012-04-24
|
||||
-- Bugfix: check for FHEM-Version not needed any more
|
||||
|
||||
2012-04-25
|
||||
-- Feature: debugging for xmllist included
|
||||
|
||||
|
@ -113,3 +113,6 @@
|
||||
- Martin 2012-04-24
|
||||
-- Bugfix: no need for checking FHEM-Version any more
|
||||
-- Bugfxi: the FS20-Type from Userdef the first time with a broken graphic
|
||||
|
||||
- Martin 2012-04-25
|
||||
-- Feature: debugging for xmllist included
|
||||
|
@ -41,7 +41,7 @@ include "include/gnuplot.php";
|
||||
include "include/functions.php";
|
||||
|
||||
|
||||
$pgm3version='120424';
|
||||
$pgm3version='120425';
|
||||
|
||||
|
||||
|
||||
@ -318,25 +318,28 @@ if (!(list($xml_parser, $live) = new_xml_parser($live))) {
|
||||
die("could not parse XML input");
|
||||
}
|
||||
|
||||
|
||||
foreach($output as $data) {
|
||||
if (!xml_parse($xml_parser, $data)) {
|
||||
die(sprintf("XML error: %s at line %d\n",
|
||||
xml_error_string(xml_get_error_code($xml_parser)),
|
||||
xml_get_current_line_number($xml_parser)));
|
||||
}
|
||||
echo("There is a xmllist file for debugging under $AbsolutPath/tmp/debugxml<br><br>");
|
||||
$handle=fopen("tmp/debugxml","w");
|
||||
fwrite($handle,$outputvar);
|
||||
fclose($handle);
|
||||
die(sprintf("XML error: %s at line %d\n",
|
||||
xml_error_string(xml_get_error_code($xml_parser)),
|
||||
xml_get_current_line_number($xml_parser)));
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
xml_parser_free($xml_parser);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#print_r($stack);
|
||||
#exit;
|
||||
|
||||
|
||||
|
||||
#searching for rooms/fs20/Logpaths
|
||||
$rooms=array();
|
||||
$fs20devs=array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user