mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +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
|
2012-04-24
|
||||||
-- Bugfix: check for FHEM-Version not needed any more
|
-- 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
|
- Martin 2012-04-24
|
||||||
-- Bugfix: no need for checking FHEM-Version any more
|
-- Bugfix: no need for checking FHEM-Version any more
|
||||||
-- Bugfxi: the FS20-Type from Userdef the first time with a broken graphic
|
-- 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";
|
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");
|
die("could not parse XML input");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
foreach($output as $data) {
|
foreach($output as $data) {
|
||||||
if (!xml_parse($xml_parser, $data)) {
|
if (!xml_parse($xml_parser, $data)) {
|
||||||
die(sprintf("XML error: %s at line %d\n",
|
echo("There is a xmllist file for debugging under $AbsolutPath/tmp/debugxml<br><br>");
|
||||||
xml_error_string(xml_get_error_code($xml_parser)),
|
$handle=fopen("tmp/debugxml","w");
|
||||||
xml_get_current_line_number($xml_parser)));
|
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);
|
xml_parser_free($xml_parser);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#print_r($stack);
|
#print_r($stack);
|
||||||
#exit;
|
#exit;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#searching for rooms/fs20/Logpaths
|
#searching for rooms/fs20/Logpaths
|
||||||
$rooms=array();
|
$rooms=array();
|
||||||
$fs20devs=array();
|
$fs20devs=array();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user