#20877 [NEW]: fgets return 1 char less

From: Date: Sat, 07 Dec 2002 15:33:13 +0000
Subject: #20877 [NEW]: fgets return 1 char less
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-26987@lists.php.net to get a copy of this message
From: php@5en1.com Operating system: red hat 7.2 PHP version: 4.3.0RC2 PHP Bug Type: *General Issues Bug description: fgets return 1 char less Hi when i do a $file=fopen("http://url","r"); $line=fgets($file,2); $line contain only the first char of the file, not 2 this bug wasn't in the php 4.1.1 i have on another server, under which my script work without any problem. -- Edit bug report at http://bugs.php.net/?id=20877&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20877&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20877&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20877&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20877&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20877&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20877&r=support Expected behavior: http://bugs.php.net/fix.php?id=20877&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20877&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20877&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20877&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20877&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20877&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20877&r=isapi

« previous php.bugs (#26987) next »