#34359 [Opn->Asn]: http_fopen_wrapper cleanup

From: Date: Mon, 19 Sep 2005 14:54:41 +0000
Subject: #34359 [Opn->Asn]: http_fopen_wrapper cleanup
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85238@lists.php.net to get a copy of this message
 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)

« previous php.bugs (#85238) next »