Bug #15947: It's code wrong or document wrong about fgets

From: Date: Fri, 08 Mar 2002 06:29:24 +0000
Subject: Bug #15947: It's code wrong or document wrong about fgets
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-1984@lists.php.net to get a copy of this message
From: yorgo@163.net Operating system: linux PHP version: 4.1.2 PHP Bug Type: Filesystem function related Bug description: It's code wrong or document wrong about fgets On fgets() document is write string fgets ( int fp [, int length]) bug is you just write php code like $string = fget($fp); it will print out some warn info about "Wrong parameter count". when I check the source code on fgets(), it writed if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) { WRONG_PARAM_COUNT; } I think it must not ARG_COUNT(ht) != 2 -- Edit bug report at http://bugs.php.net/?id=15947&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15947&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15947&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15947&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15947&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15947&r=support Expected behavior: http://bugs.php.net/fix.php?id=15947&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15947&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15947&r=submittedtwice

« previous php.bugs (#1984) next »