Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3871 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6155 invoked from network); 12 Aug 2003 18:20:10 -0000 Received: from unknown (HELO pigeon.alphaweb.net) (64.142.6.229) by pb1.pair.com with SMTP; 12 Aug 2003 18:20:10 -0000 Received: from localhost ([127.0.0.1] helo=alphaweb.net) by pigeon.alphaweb.net with smtp (Exim 4.10) id 19me0k-0004Om-00; Tue, 12 Aug 2003 11:36:46 -0700 Received: from (SquirrelMail authenticated user sarag) by with HTTP; Tue, 12 Aug 2003 11:36:46 -0700 (PDT) Message-ID: <..1060713406.squirrel@> Date: Tue, 12 Aug 2003 11:36:46 -0700 (PDT) To: In-Reply-To: <200308121435.40604.msopacua@php.net> References: <20030810003052.95044.qmail@pb1.pair.com> <20030812021011DRqTvP@at.wakwak.com> <..1060627028.squirrel@> <200308121435.40604.msopacua@php.net> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: , Reply-To: pollita@php.net X-Mailer: SquirrelMail (version 1.2.7) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [Review] Route stat() family of calls via wrapper ops. From: pollita@php.net ("Sara Golemon") >> http:// wrapper: >> is_writable() would always return false. >> is_readable() would return true *IF* a HEAD request returned 2xx or >> 3xx is_executable() would always return false. >> file_exists() would return true if a HEAD request returned 2xx, 3xx, >> or >> 4xx (not including 404) > > I wouldn't agree there: > http://www.example.com/file with spaces.png [1] > > returns invalid method: 400. I think the entire 4xx and 5xx family > should return false. > *blink* Did I write that? Musta been talking to someone while I was doing it. Yes, I agree, only 2xx and 3xx should return true. > As for 30[12], what happens when the refered document does not exist? > Symlinks have a maximum number of links and return ELOOP. Does the same > apply to 302 and what is the value of MAXSYMLINKS (sys/param.h) in that > case? > I couldn't say without double checking the code, but there's a forward limit in http_fopen_wrapper which limits how far the http wrapper will go in following redirects. If that limit is reached the stat would fail or the is_readable would return false. (Just as it would for plainfiles) -Sara