Bug #16452: using fgets or fread with fsockopen returns strange numbers

From: Date: Fri, 05 Apr 2002 16:11:51 +0000
Subject: Bug #16452: using fgets or fread with fsockopen returns strange numbers
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-4143@lists.php.net to get a copy of this message
From: paramelle@jobpilot.fr Operating system: linux PHP version: 4.1.2 PHP Bug Type: Output Control Bug description: using fgets or fread with fsockopen returns strange numbers I open an url with fsockopen and when I read socket with fread or fgets it sometimes return hexadecimal numbers. (which appears to be the number of characters to the next 'strange number') The output looks like this (numbers : 19f, 24, 0) : ... </table></center> 19f <hr size=1 noshade> <center> [ <a href="/" target=_top>Home</a> | <a href="/verschlagwortung/swneu.php3">Categorize</a> | <a href="/content/docs/categorize_help.html" target=_blank>Categorization Help</a> | <a href="/verschlagwortung/make_adds/templates.php3">Templates</a> | <a href="/archiv/kundeninfo.php3">Customer Info</a> | <a href="/ShowNewAnzeigen.php3">Final Check</a> | <a href="/ShowTemp.php3">Temp Direc 24 tory</a> ] </center> </body></html> 0 ### end of output ### when I read the file with fopen it works better but in this case I don't want to use fopen. Good luck -- Edit bug report at http://bugs.php.net/?id=16452&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16452&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16452&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16452&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16452&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16452&r=support Expected behavior: http://bugs.php.net/fix.php?id=16452&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16452&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16452&r=submittedtwice

« previous php.bugs (#4143) next »