# stream_stat_path megapatch

- Thread: https://externals.io/message/5718
- Original archive: https://news-web.php.net/php.internals/5718
- Started by Sara Golemon on 2003-11-26T07:03:45+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #5718 — Sara Golemon — 2003-11-26T07:03:45+00:00

URL: https://externals.io/message/5718#5718

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

---

## #5719 — Sara Golemon — 2003-11-26T07:05:18+00:00

URL: https://externals.io/message/5718#5719 · In reply to: #5718

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
