Re: [Review] Route stat() family of calls via wrapper ops.
| From: | Melvyn Sopacua | Date: | Tue, 12 Aug 2003 12:35:38 +0000 |
| Subject: | Re: [Review] Route stat() family of calls via wrapper ops. | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3869@lists.php.net to get a copy of this message | ||
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