Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5718 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80269 invoked by uid 1010); 26 Nov 2003 07:03:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80215 invoked from network); 26 Nov 2003 07:03:54 -0000 Received: from unknown (HELO pigeon.alphaweb.net) (64.142.6.229) by pb1.pair.com with SMTP; 26 Nov 2003 07:03:54 -0000 Received: from adsl-64-142-6-231.sonic.net ([64.142.6.231] helo=basillica) by pigeon.alphaweb.net with smtp (Exim 4.10) id 1AOuJW-0000t0-00; Tue, 25 Nov 2003 23:42:18 -0800 Message-ID: <002b01c3b3eb$783fa7f0$0a00000a@alphaweb.net> To: Cc: Date: Tue, 25 Nov 2003 23:03:45 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: stream_stat_path megapatch From: pollita@php.net ("Sara Golemon") 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