php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61216 events only list filenames without path
Submitted: 2012-03-01 10:55 UTC Modified: 2021-07-19 13:24 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: lucvh at sps dot be Assigned: cmb (profile)
Status: Closed Package: inotify (PECL)
PHP Version: Irrelevant OS: Linux
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 !
Your email address:
MUST BE VALID
Solve the problem:
38 - 4 = ?
Subscribe to this entry?

 
 [2012-03-01 10:55 UTC] lucvh at sps dot be
Description:
------------
The events returned by inotify_read do not include the pathname of the file that triggered the event. This makes it difficult if you are watching multiple locations.
Would it be possible to add the key 'pathname' to the array that is returned ?

The documentation would then become:

An array of inotify events or FALSE if no events was pending and inotify_instance is non-blocking. Each event is an array with the following keys:

    wd is a watch descriptor returned by inotify_add_watch()
    mask is a bit mask of events
    cookie is a unique id to connect related events (e.g. IN_MOVE_FROM and IN_MOVE_TO)
    name is the name of a file (e.g. if a file was modified in a watched directory)
    pathname is the path of a file that triggered the event



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-07-19 13:24 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-07-19 13:24 UTC] cmb@php.net
The bug tracker for the inotify package has been moved to
Github[1].  Please report the issue there, if it is still
relevant.

[1] <https://github.com/arnaud-lb/php-inotify/issues>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 03:01:29 2024 UTC