ID:               15947
 Updated by:       [EMAIL PROTECTED]
-Summary:          It's code wrong or document wrong about fgets
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         Documentation problem
 Operating System: linux
 PHP Version:      4.1.2
 New Comment:

Documentation is fine.  There is a note about this (that this is only
optional in 4.2.0) in the documentation.


Previous Comments:
------------------------------------------------------------------------

[2002-03-08 06:21:23] [EMAIL PROTECTED]

Reclassified.

------------------------------------------------------------------------

[2002-03-08 02:39:28] [EMAIL PROTECTED]

Documentation is correct here, but the 2nd parameter is only optional
in php 4.2.0 and higher (not released yet).

Derick

------------------------------------------------------------------------

[2002-03-08 01:29:23] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=15947&edit=1

Reply via email to