|  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
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:
28 - 25 = ?
Subscribe to this entry?

 [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: Tue Jan 21 05:01:23 2020 UTC