From: [EMAIL PROTECTED] Operating system: * PHP version: 6CVS-2005-09-03 (CVS) PHP Bug Type: HTTP related Bug description: http_fopen_wrapper cleanup
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 bug report at http://bugs.php.net/?id=34359&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34359&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34359&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34359&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34359&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34359&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34359&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34359&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34359&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34359&r=support Expected behavior: http://bugs.php.net/fix.php?id=34359&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34359&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34359&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34359&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34359&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34359&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34359&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34359&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34359&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34359&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34359&r=mysqlcfg
