|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34359 http_fopen_wrapper cleanup
Submitted: 2005-09-03 13:46 UTC Modified: 2005-12-08 03:54 UTC
From: Assigned: pollita (profile)
Status: Closed Package: HTTP related
PHP Version: 6CVS-2005-09-03 (CVS) OS: *
Private report: No CVE-ID: None
 [2005-09-03 13:46 UTC]
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).


Reproduce code:
php -r "file_get_contents('');"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-19 16:54 UTC]
Sara, could you plz take care of it?
 [2005-12-08 03:54 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 02 16:01:27 2023 UTC