|  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: -
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:
Status: Open Package: inotify (PECL)
PHP Version: Irrelevant OS: Linux
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:
Bug Type:
From: lucvh at sps dot be
New email:
PHP Version: OS:


 [2012-03-01 10:55 UTC] lucvh at sps dot be
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


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat May 30 09:01:24 2020 UTC