Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65848 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43795 invoked from network); 14 Feb 2013 21:37:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Feb 2013 21:37:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.193 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.193 smtp193.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.193] ([67.192.241.193:38114] helo=smtp193.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/00-43372-A295D115 for ; Thu, 14 Feb 2013 16:37:46 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp9.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 825D93C0ACA; Thu, 14 Feb 2013 16:37:42 -0500 (EST) X-Virus-Scanned: OK Received: by smtp9.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 8F86C3C00B8; Thu, 14 Feb 2013 16:37:40 -0500 (EST) Message-ID: <511D5924.4070602@sugarcrm.com> Date: Thu, 14 Feb 2013 13:37:40 -0800 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: "ivan.enderlin@hoa-project.net" CC: PHP internals References: <511CEEB1.7040303@hoa-project.net> In-Reply-To: <511CEEB1.7040303@hoa-project.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] File system watcher/monitoring From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > A missing feature in PHP is a file system watcher/monitoring available > for almost all platforms. On Linux, we have inotify (available in PHP > through pecl/inotify), on Mac OS X, we have /dev/fsevents (not available > in PHP, since we need ioctl to do that in pure PHP —and sudo—, no C > extension needed), on FreeBSD, we have FAM, and on Windows, we have > FileSystemWatcher in .NET. All major platforms have a solution ready to use. I think it'd be great to have a library with unified interface and an extension that uses it. However, I'm not sure if these libraries are useful in common php use case - short-lived requests. Could I get the changes since the last request? Or is it useful only for long-running persistent processes? > Is it possible to have such a feature landing in PHP (core if karma > allows it)? or do you want such a feature? I'm not sure why it has to be in core though. I don't see so far anything that requires modifying language core. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227