I have patched owfs/module/swig/ow.i owfs/module/swig/tcl/ow.c
a bit...  FullFileLength() should be replaced to FS_size()
or FS_size_postparse() to support remote servers, especially
when detecting filelength of /bus.0/system/adapter/name.ALL .


I tried the script runme.php for the very first time, and I
noticed that this crashed php:

  $list_bus = get( "/bus.99" );
  if ($list_bus) {
    echo "result: $list_bus\n";
  } else {
    echo "xlistbus is null\n";
  }

get() returns NULL if something fails, but shouldn't it return
an empty string if something fails?

I replaced "return NULL" to "return strdup("");", and php didn't
crash after that. It was possible to do the test "if($list_bus)"
to see if result was available.
Should it be like this for python, perl5 too? Just asking
so I don't break anything when updating ow.i. tcl seem to have
it's own tcl_error return code, so I guess it's no problem for tcl.

I have never used python and perl very much and since there are no
example scripts I'm clueless how to test it... :)



-- 
Christian Magnusson <[EMAIL PROTECTED]>



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to