Re: [PHP-DEV] Strange problem with php_stream_read()

2008-09-06 Thread Scott MacVicar
buff needs to be null terminated, you can use RETURN_STRINGL(buff, content_size, 1); if you know the length. Scott On 6 Sep 2008, at 23:19, Mangol Smith wrote: Hello all, I got a strange problem. I opened a network stream with my web server (localhost:80) and wrote a HTTP GET into stream and

[PHP-DEV] Strange problem with php_stream_read()

2008-09-06 Thread Mangol Smith
Hello all, I got a strange problem. I opened a network stream with my web server (localhost:80) and wrote a HTTP GET into stream and reading the HTTP RESPONSE. buff = (char *)emalloc(content_size); php_stream_read(http_stream, buff, content_size); where content_size is the Content-Length value