Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51602 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16753 invoked from network); 7 Mar 2011 18:36:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2011 18:36:59 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:50666] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/D7-06226-7A5257D4 for ; Mon, 07 Mar 2011 13:36:58 -0500 Received: by bwz13 with SMTP id 13so4035731bwz.29 for ; Mon, 07 Mar 2011 10:36:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=5slA0IDCaMYfAxZ6eKQVN5b1iVmKpv7xOhebiLOV3XU=; b=uHJiVBuujSvHDK8bEZJdxaGDgUXgg0OqZtVQnAAvzg4lBVZZk7wW+XrjzunEzgb85V gZNh82cTp+4EJbpyQh6EBWRYVp82jryLEacYSIz2jDREwwCia37QHZSniVfZ6i1UwSRJ mc30Kmsce824yd9GmH0qw8e1gkCg9K3zuNjgM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=IDZE0t+gMshPxy7H32lNdpV2USCZIpC8B95+sj2NaS6uqrIkY9ijv2hIsdMLbASree IUK7VjCWEd/80QnbLRnvAykOE5jLtM81yqEYM88D5BOACYpe8x1dK3t6nuX5NnvkZvkt dYOCCcM+BCW+cewkJtM0QCc5/gd9yhoohZ+Q8= MIME-Version: 1.0 Received: by 10.205.37.2 with SMTP id tc2mr2086031bkb.14.1299522976261; Mon, 07 Mar 2011 10:36:16 -0800 (PST) Received: by 10.204.122.2 with HTTP; Mon, 7 Mar 2011 10:36:16 -0800 (PST) In-Reply-To: <4D751AC2.3030800@sugarcrm.com> References: <4D7431C3.10405@sugarcrm.com> <4D74A8FD.3020102@sugarcrm.com> <4D74AB3C.8040702@sugarcrm.com> <4D751AC2.3030800@sugarcrm.com> Date: Mon, 7 Mar 2011 19:36:16 +0100 Message-ID: To: Stas Malyshev Cc: Gustavo Lopes , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] file streams & metadata From: pierre.php@gmail.com (Pierre Joye) hi, On Mon, Mar 7, 2011 at 6:49 PM, Stas Malyshev wrote: > Hi! > >> To hear that stream are useless for filesystem operation is very new to >> me. > > It was surprise for me too, nevertheless once you try to use it, you pretty > soon hit this roadblock with any serious application and have to resort to > very ugly hacks. The more I read what you say the more I think that what you want is not a working stream implementation to do filesystem ops, but a way to emulate a virtual file system using stream. I don't think it is the goal of our stream implementation to do that. Tools like FuseFS are more appropriate and I can certainly do similar things on Windows as well. I have done that in the past for debugging purposes and we could certainly provide something as well. >> I have to repeat what I said earlier, these specific informations >> (ACL, reparse points or other OS/FS specific informations) are very > > Nobody cares about reparse points. There's probably no PHP app in existence > that cares about reparse points. There's tons of apps that use touch() and > chmod() though. if nobody was taking care of them then PHP on windows will be miserable with junction, links and co already. But it is not. >> hard to implement in a generic way as you are proposing. As the idea >> in itself is good, I have serious doubts that a useful (working and >> portable) solution can be implemented with what is described in your >> initial post (barely posix only). > > It is useful, and it will be working. I disagree for the reasons I explained earlier. It is even useless as it will be a very limited version. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org