Here's a second stab at routing userland stat()
via the streams wrapper op
url_stat.
It needs some good and heavy testing on alternate platforms (especially
Win32 and Netware).
Could others give it a shot? Test userland functions like stat()
, lstat()
,
filesize()
, is_link()
, filetype()
, is_readable()
, etc.... with localfiles,
(e.g. "/foo/bar/baz.txt"), localfiles explicitly named via the files wrapper
(e.g. "file:///foo/bar/baz.txt") and remote files via the ftp wrapper (the
only one with a url_stat implementation at the moment (and only a limited
one at that) (i.e. echo filesize("ftp://ftp.kerneli.org/pub/README"); )
Also looking for general thoughts on structure and implementation.
-Sara
Might help if I include the patch:
http://frankenbox.alphaweb.net/test/stat-megapatch.diff
----- Original Message -----
From: "Sara Golemon" pollita@php.net
Newsgroups: php.internals
To: internals@lists.php.net
Cc: wez@php.net
Sent: Tuesday, November 25, 2003 11:03 PM
Subject: stream_stat_path megapatch
Here's a second stab at routing userland
stat()
via the streams wrapper op
url_stat.It needs some good and heavy testing on alternate platforms (especially
Win32 and Netware).Could others give it a shot? Test userland functions like
stat()
,
lstat()
,
filesize()
,is_link()
,filetype()
,is_readable()
, etc.... with localfiles,
(e.g. "/foo/bar/baz.txt"), localfiles explicitly named via the files
wrapper
(e.g. "file:///foo/bar/baz.txt") and remote files via the ftp wrapper (the
only one with a url_stat implementation at the moment (and only a limited
one at that) (i.e. echo filesize("ftp://ftp.kerneli.org/pub/README"); )Also looking for general thoughts on structure and implementation.
-Sara