> start debugging, at the very least find out what is returned by $res
The main problem is that I do not know from what should I start the
debugging. I have no output to analyses. This function is like a
"black box". I red the description of this function and tried to
full fill all requirement of the correct usage. But id does not work.