|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #73433 could posix_fadvice be added?
Submitted: 2016-10-31 19:04 UTC Modified: 2017-03-17 22:43 UTC
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: divinity76 at gmail dot com Assigned: pollita (profile)
Status: Assigned Package: POSIX related
PHP Version: Next Minor Version OS: unix*
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
30 - 8 = ?
Subscribe to this entry?

 [2016-10-31 19:04 UTC] divinity76 at gmail dot com
a php script doing file opretaions might benefit from posix_fadvice, could that be added? 

additional note: it might be worth looking into adding posix_fadvice calls to file_put_contents / file_get_contents , namely POSIX_FADV_SEQUENTIAL,  because those always are.

Test script:
// tell the kernel that i'm probably only going to access this data once,
// so it's probably a waste to add this to the filesystem cache

// tell the kernel that i'm probably going to read from byte 12345 to 123456789 sequentially, so optimize for that

// aka file_get_contents('bigfile',false,NULL,12345,123456789-12345);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-03-17 22:43 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: pollita
 [2017-03-17 22:43 UTC]
This sounds like a good idea.
 [2023-04-10 05:59 UTC] vikesgvogdg at gmail dot com
EzeeBooks comprehensive  CRM for sales and customer management, HR & Payrolls, Project, Reporting and Analytics, and much more. More info: (
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Jun 03 19:03:38 2023 UTC