Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64688 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34865 invoked from network); 8 Jan 2013 13:57:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jan 2013 13:57:12 -0000 Authentication-Results: pb1.pair.com header.from=nicolai.scheer@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nicolai.scheer@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.181 as permitted sender) X-PHP-List-Original-Sender: nicolai.scheer@gmail.com X-Host-Fingerprint: 74.125.82.181 mail-we0-f181.google.com Received: from [74.125.82.181] ([74.125.82.181:59542] helo=mail-we0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/1A-16636-7B52CE05 for ; Tue, 08 Jan 2013 08:57:12 -0500 Received: by mail-we0-f181.google.com with SMTP id t11so360723wey.40 for ; Tue, 08 Jan 2013 05:57:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=+zzGDPQ6grdtgaACWM4ALOu92/Fv0bYiRvsEvW7ZkzQ=; b=0GeXj5ar+IvStWhIEXwOzTbMdsx5BbukE2MLsFpIB/8Lesr2C4ueTUiB+wv9RFBIUo ovma168Oamp+/PHOLdRwJ0ctJJSzW2GULre45/BiNEAcvpOctIzUamWNXLY0BFp7z1ON g/rZ3LTLX/DTz2Aue15THFmWAYf1i+6+nysk4ki1OseE9dbmQB9BkNO2X+xIqKkPc3QP B4oZuol2Q0U4TcczcpjgJHoNFazYCjeuAaX1dlAWj5nunNlM1ggTEWABELz4kdFCggRC mL6OeD56rsFqIrCG/x6z2yVDz1VUUvRUi8KjOFHcfV5hlnyy8/wTsRG36d14Meoauw32 TX2g== MIME-Version: 1.0 X-Received: by 10.180.100.163 with SMTP id ez3mr14926936wib.24.1357653420192; Tue, 08 Jan 2013 05:57:00 -0800 (PST) Received: by 10.227.170.206 with HTTP; Tue, 8 Jan 2013 05:56:59 -0800 (PST) In-Reply-To: References: Date: Tue, 8 Jan 2013 14:56:59 +0100 Message-ID: To: Pierre Joye Cc: PHP internals Content-Type: multipart/alternative; boundary=f46d0444edffd6b57104d2c7510f Subject: Re: [PHP-DEV] File-Paths exceeding MAX_PATH on Windows From: nicolai.scheer@gmail.com (Nicolai Scheer) --f46d0444edffd6b57104d2c7510f Content-Type: text/plain; charset=UTF-8 Hi! On 8 January 2013 14:40, Pierre Joye wrote: > On Tue, Jan 8, 2013 at 2:38 PM, Nicolai Scheer > wrote: > > > I agree, but what about pandora and the other file functions like > unlink() > > etc.? :) > > They currently do not prevent such long and prefixed paths... > > A bug then, should be fixed. Yes, you don't want to hear that but... :-) > Could have guessed the answer ;) > > > And to my mind it is ok to let the user open the box (a little?) when he > is > > doing so on purpose. > > > > Unfortunately mouting directories is too unflexible for our use case... > > How so? can be easily automated for shared hosts and the likes. > We're developing a file system indexer. There's a huge folder structure and we scan folders in parallel. The users mountpoints are way down the structure (subfolder for department, team etc.). If the users reach MAX_PATH, the scanner, using the whole path from root, exceeds MAX_PATH. We'd need to adjust a lot of code in order to be able to work on mounts instead of the direct path, and it's not trivial to parallelize this. Of course it could be done, but I searched for an easier way... Do you have any advice how I can move lill' pandora to an extension? Of course I might copy the complete simple_file_wrapper, but I'd rather not do it that way... I did not find any "add standard stream context option"-stuff in the API... Thanks! Greetings Nico --f46d0444edffd6b57104d2c7510f--