php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #15480 Error in fgets() Docs
Submitted: 2002-02-09 19:13 UTC Modified: 2002-02-11 16:44 UTC
From: hz11 at nyu dot edu Assigned: alindeman (profile)
Status: Closed Package: Documentation problem
PHP Version: 4.1.1 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hz11 at nyu dot edu
New email:
PHP Version: OS:

 

 [2002-02-09 19:13 UTC] hz11 at nyu dot edu
Hello,

When using fgets() with 4.1.1 it says that the second parameter [int
length] is optional.  However, if length is left out, I get a Warning
complaining that the second parameter is missing.

Thank you,

Hans

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-09 19:17 UTC] alindeman@php.net
Your right.

Status -> Analyzed

Assigned to myself.  I'll fix it in a minute.

 [2002-02-09 19:18 UTC] alindeman@php.net
This bug has been fixed in CVS.
 [2002-02-11 16:44 UTC] alindeman@php.net
Just to clear things up.  The param is optional, though it is only optional in 4.2.0(-dev)  A note has been 
added to the doc page telling people this.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 22:01:33 2025 UTC