Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42663 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86499 invoked from network); 16 Jan 2009 17:27:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jan 2009 17:27:48 -0000 X-Host-Fingerprint: 84.140.245.170 p548CF5AA.dip.t-dialin.net Received: from [84.140.245.170] ([84.140.245.170:18777] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C3/3C-27029-393C0794 for ; Fri, 16 Jan 2009 12:27:48 -0500 Message-ID: To: internals@lists.php.net Date: Fri, 16 Jan 2009 18:27:44 +0100 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20081204 Thunderbird/3.0b1 MIME-Version: 1.0 References: <8C.85.27029.97F90794@pb1.pair.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 84.140.245.170 Subject: Re: [PHP-DEV] Path length for files on NTFS From: karsten@typo3.org (Karsten Dambekalns) Hi. On 16.01.2009 17:12 Uhr, Pierre Joye wrote: >> The problem is exactly the same on any OS, only the size varies. The >> limit is not higher either. What do you use as naming for your >> entries? Oe example with 229 characters: /Users/karsten/Sites/typo3v5/Data/Temporary/6e7991cd3e3f10e110df4a26825c1f8c/_www/Cache/Testing/Tags/%CLASS%F3_Widget_Persistence_MessageQueuePersistenceAspect/FLOW3_Reflection-F3_Widget_Persistence_MessageQueuePersistenceAspect For deeper nested namespaces this will get longer, add some deeper directory structure at the start and - bang. Now, I never ran into problems with paths being too long for anything I tried on Linux or Mac, so what limits exist? Admittedly I never thought about that much. Given we live in a world of terabytes I'd expect names to be virtually as long as I want. :) > Btw, what do you do when the path len of the path where the cache is > stored is closed from MAXPATHLEN (PHP_MAXPATHLEN in userland)? Given > than MAXPATHLEN can be between 260 and 2048 (~), that' can happen > easily. Never heard of that constant, thanks for pointing it out. The documentation doesn't explain it, is there some background information available somewhere? So, in the best case we hit the roof at ~2k? Good to know... Thanks, Karsten