php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #64586 [FAM] Monitoring requests should accept userdata
Submitted: 2013-04-05 02:41 UTC Modified: 2017-10-24 08:56 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: mi+php at aldan dot algebra dot com Assigned:
Status: Open Package: PECL (PECL)
PHP Version: 5.4.13 OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mi+php at aldan dot algebra dot com
New email:
PHP Version: OS:

 

 [2013-04-05 02:41 UTC] mi+php at aldan dot algebra dot com
Description:
------------
The File Allocation Monitor API (implemented by the old FAM as well as modern Gamin) allows monitoring requests to register a userdata pointer, that will be associated with the generated events.

Currently the fam_monitor_directory does not accept such argument from the PHP-scripts, and passes hardcoded NULL to FAMMonitorDirectory(). Other FAMMonitor* calls behave the same.

This would be a "low-hanging fruit", that could go a long way to making this extension more usable.

I'd be happy to create a patch, if a developer assured me, they'd be willing to work with me on merging the patch and preparing a new release (5.0.2?)...

Thanks!


Patches

fam-userdata.patch (last revision 2013-04-09 22:42 UTC by mi+php at aldan dot algebra dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-24 08:56 UTC] kalle@php.net
-Summary: FAM Monitoring requests should accept userdata +Summary: [FAM] Monitoring requests should accept userdata
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 04:01:28 2024 UTC