php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #44674 fscanf always reads whole lines
Submitted: 2008-04-08 21:29 UTC Modified: 2008-11-07 09:57 UTC
Votes:3
Avg. Score:2.3 ± 1.9
Reproduced:0 of 0 (0.0%)
From: timshaw at mail dot usa dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Any
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: timshaw at mail dot usa dot com
New email:
PHP Version: OS:

 

 [2008-04-08 21:29 UTC] timshaw at mail dot usa dot com
Description:
------------
Is fscanf really just sscanf(fgets(), ... so that one can not call it multiple times to scan the parts of a possibly varying line as is possible using fscanf in other languages? Nothing in the official documentation says that it works on whole lines.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-07 09:57 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

"Each call to fscanf() reads one line from the file."
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 22:00:01 2026 UTC