Re: [PHP-WEBMASTER] Idea?
am 15.09.2009 14:25:30 von Hannes MagnussonOn Tue, Sep 15, 2009 at 11:40, Ian Tighe
e:
> Hi
> I am using files that are mount.cif share files. My client is a samba lin=
ux box but acting as a client over cifs to an XP box (several in fact).
> I am descending the share recursively with opendir and readdir detecting =
files from link and of course directories before doing my processing.
> I note from a wireshark trace I am getting errors - sharing violations re=
ported by XP. I would very much like to detect these events to take action =
- ignore the file for instance - but right now I have a true or false retur=
n for is_dir, is_file or is_link which is not very helpful during a fault c=
ondition such as a sharing violation which can only return false. In other =
words a sharing violation looks like a readdir saying no more files!
>
> =A0It seems that once the error condition comes about all my reads of a d=
irectory and tests of type fails until I reach the end of that directory an=
d all of its parent directories. This is not so good.
>
> Is it possible to bring out more error information so that I can detect t=
hese events. An error array as an additional overloaded argument to readdir=
, opendir (indeed any I/O) where the first element has the normal false but=
a second element has a return code for smb/cifs/file_system failure/error/=
warning condition?
>
You could create a new feature request (http://bugs.php.net), or ask
the Windows guys (CCed) :)
-Hannes
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php