Avatar

Employee

What version of the PHP library do you have ? (it should be printed in the header).

I don't have any version that matches a possible error on line 707.

I suspect the error is in this area:

             $meta = stream_get_meta_data($fp);

             $headers = $meta['wrapper_data'];

          ...

            if ($statusLine[1] == "200" | $statusLine[1] == "302")

                return $resp;

            else

                throw new RTCError($statusLine[1]);

I am expecting $headers[0] to be something like "HTTP/1.1 200 OK" but if I look at your debug messages I see this:

            [headers] => Array
                (

                    [0] => HTTP/1.1 302 Moved Temporarily

                                         ...

                    [10] => HTTP/1.1 200 OK
                }

i.e. the "response" contains both the "redirect response" (302) and the real response (200).
This would still be ok since I am checking for both 200 and 302:

            if ($statusLine[1] == "200" | $statusLine[1] == "302")

               return $resp;

Can you try to print out the value of $statusLine when the error occur ? Or please send us your version of lccs.php.

I suspect something is missing in there (and again, it doesn't seem to match any version that I have in our source repository)