Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3869 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64451 invoked from network); 12 Aug 2003 12:35:54 -0000 Received: from unknown (HELO webmaster.idg.nl) (62.250.13.25) by pb1.pair.com with SMTP; 12 Aug 2003 12:35:54 -0000 Received: by webmaster.idg.nl (Postfix, from userid 1001) id 51ADE1C221; Tue, 12 Aug 2003 14:35:41 +0200 (CEST) Organization: php.net To: pollita@php.net, Date: Tue, 12 Aug 2003 14:35:38 +0200 User-Agent: KMail/1.5.3 Cc: References: <20030810003052.95044.qmail@pb1.pair.com> <20030812021011DRqTvP@at.wakwak.com> <..1060627028.squirrel@> In-Reply-To: <..1060627028.squirrel@> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200308121435.40604.msopacua@php.net> Subject: Re: [PHP-DEV] [Review] Route stat() family of calls via wrapper ops. From: msopacua@php.net (Melvyn Sopacua) Hi, On Monday 11 August 2003 20:37, Sara Golemon wrote: > Nor can they return full stat detail. i.e.: What's the filesize of > php://stdin ? Who "owns" http://example.com/foo.html ? Last I spoke to > Wez on the subject he indicated that we should just attempt to return as > much information as we can and default on the rest. > > 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. [1] I know the url is invalid, but if you wanna do syntax checking on urls, then you're in for a treat, especially when the url contains double-byte characters. 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? > -Sara -- Melvyn