#34359 [Opn->Asn]: http_fopen_wrapper cleanup
ID: 34359
Updated by: tony2001@php.net
Reported By: nlopess@php.net
-Status: Open
+Status: Assigned
Bug Type: HTTP related
Operating System: *
PHP Version: 6CVS-2005-09-03 (CVS)
-Assigned To:
+Assigned To: pollita
New Comment:
Sara, could you plz take care of it?
Previous Comments:
------------------------------------------------------------------------
[2005-09-03 13:46:22] nlopess@php.net
Description:
------------
I've cleaned up the http fopen wrapper, because I got a 2 valgrind
errors on it.
Apart of fixing the bug, I've also removed an unecessary assignement to
http_header_line, because php_stream_gets() already truncates the
string, so there's no need to do it twice (I've tested it by sending a
large (>1024) string in the headers).
Patch: http://mega.ist.utl.pt/~ncpl/php_streams_mem.txt
Reproduce code:
---------------
php -r "file_get_contents('http://www.xpto.com');"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34359&edit=1
Thread (3 messages)