Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65873 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22949 invoked from network); 15 Feb 2013 13:30:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Feb 2013 13:30:22 -0000 Authentication-Results: pb1.pair.com header.from=krebs.seb@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.172 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@gmail.com X-Host-Fingerprint: 74.125.82.172 mail-we0-f172.google.com Received: from [74.125.82.172] ([74.125.82.172:52736] helo=mail-we0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1D/E2-06160-B683E115 for ; Fri, 15 Feb 2013 08:30:19 -0500 Received: by mail-we0-f172.google.com with SMTP id x10so2915510wey.17 for ; Fri, 15 Feb 2013 05:30:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=RZsB5ZwUA+FjWWlH1GbxeobGq0F+UIJPGkDxp97yUNA=; b=X3MzzMRP8bMDVz8kVr+0Svjx3bTezuXRrGAK18j2Zex48DCb+vWa1Xnp5or3UG9pYk CW7guwI0rvTGlhbl/zNWA+cPIe/6yJrGGr9a51vJunTdE1HnBqTLQTTzlaAovDiHtG+3 pqa2LoCBjneXXGGgy//z/rv5xf7Sh5vy+CV9Do0QtaLgjEsTYhoowuqY/uMBNbT1NmX3 COgPe1yXn+VA0+mNvdwtjwh7eOiXwgWQfwpOXhjsktRoKuS1VabYbPuqjmKGWmuZiTGV qXm2j+EEyblvDdPjrRPaZpHX2nrr3tlavnFZAWh6dDShKgQwxUFE1tUgZt19Aq3hdIb9 dqmA== X-Received: by 10.180.76.84 with SMTP id i20mr4217967wiw.9.1360935016593; Fri, 15 Feb 2013 05:30:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.217.50.137 with HTTP; Fri, 15 Feb 2013 05:29:56 -0800 (PST) In-Reply-To: <511E370E.3080709@hoa-project.net> References: <511CEEB1.7040303@hoa-project.net> <511D5924.4070602@sugarcrm.com> <511E3305.2020506@hoa-project.net> <511E370E.3080709@hoa-project.net> Date: Fri, 15 Feb 2013 14:29:56 +0100 Message-ID: To: "ivan.enderlin@hoa-project.net" Cc: PHP internals list Content-Type: multipart/alternative; boundary=f46d0434c0aa39f77c04d5c36095 Subject: Re: [PHP-DEV] File system watcher/monitoring From: krebs.seb@gmail.com (Sebastian Krebs) --f46d0434c0aa39f77c04d5c36095 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 2013/2/15 Ivan Enderlin @ Hoa > On 15/02/13 14:20, Sebastian Krebs wrote: > >> 2013/2/15 Ivan Enderlin @ Hoa >> >> Hi Stas, >>> >>> >>> On 14/02/13 22:37, Stas Malyshev wrote: >>> >>> Hi! >>>> >>>> A missing feature in PHP is a file system watcher/monitoring availab= le >>>> >>>>> 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 =97and sudo=97, 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 a= n >>>> 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? >>>> >>>> It is only useful for long-running processes. >>> >>> For example when you are writting tests: at each modifications, you wou= ld >>> like to re-run or re-generate tests. In this case, you have a daemon th= at >>> watches files changes and executes a command when needed. >>> >>> Why do you need PHP for this? >> http://stackoverflow.com/**questions/3283228/bash-** >> execute-script-on-file-save#**answer-3283390 >> > I don't understand your point. For the use-case you described here a PHP-implementation is not required, because you can use the system-tools to invoke PHPUnit. In fact you don't need a daemon at all ;) > > > -- > Ivan Enderlin > Developer of Hoa > http://hoa-project.net/ > > PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) > http://disc.univ-fcomte.fr/ and http://www.inria.fr/ > > Member of HTML and WebApps Working Group of W3C > http://w3.org/ > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 github.com/KingCrunch --f46d0434c0aa39f77c04d5c36095--