From:             [EMAIL PROTECTED]
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

Reply via email to