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
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: 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)

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Apr 23 12:01:29 2025 UTC