php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #49041 SplFileObject has no fread
Submitted: 2009-07-23 21:23 UTC Modified: 2010-11-24 15:16 UTC
Votes:5
Avg. Score:4.8 ± 0.4
Reproduced:5 of 5 (100.0%)
Same Version:5 (100.0%)
Same OS:5 (100.0%)
From: stas at zend dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.3.0 OS: *
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: stas at zend dot com
New email:
PHP Version: OS:

 

 [2009-07-23 21:23 UTC] stas at zend dot com
Description:
------------
While SplFileObject has many functions that mimic stream's interface, including fseek, ftell, fwrite, fgets and fscanf, it does not have fread for some reason - so it is not possible to read specific number of bytes from the object. 



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-16 10:41 UTC] christian dot ubu at gmail dot com
Duplicate there: http://bugs.php.net/bug.php?id=36289

Having a SplBinaryFileObject class would be awesome.
 [2010-11-24 15:16 UTC] jani@php.net
-Status: Open +Status: Bogus -Package: Feature/Change Request +Package: *General Issues
 [2010-11-24 15:16 UTC] jani@php.net
Duplicates go boom.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 22 10:00:03 2025 UTC