Req #38025 [Com]: Missing stream wrapper methods
| From: | james at gogo dot co dot nz | Date: | Sat, 26 Jun 2010 04:26:07 +0000 |
| Subject: | Req #38025 [Com]: Missing stream wrapper methods | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151878@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=38025&edit=1
ID: 38025
Comment by: james at gogo dot co dot nz
Reported by: flconseil at yahoo dot fr
Summary: Missing stream wrapper methods
Status: Open
Type: Feature/Change Request
Package: Feature/Change Request
Operating System: All
PHP Version: 5.1.4
New Comment:
I will add also that if touch() gets called with a (normally stream
wrapped) URL,
it actually attempts to touch a file by that name on the local file
system, most
likely unsuccessfully (producing a WARNING) but there is no particular
reason why
it could not be successful in some situation.
Better/safer behavior would be to give an ERROR that you are trying to
touch a
stream wrapped file which can't be touched (or preferably of course,
implement
the ability for stream wrappers to accommodate touch()).
Previous Comments:
------------------------------------------------------------------------
[2010-06-25 18:36:28] james at gogo dot co dot nz
In the 4 years since this bug/feature request was reported, flock() has
been
implemented.
I can not see any documentation to indicate that touch(), chmod() etc...
are
possible to implement with stream wrappers yet.
url_stat() is able to provide read access for these data points, but
there is no
means to provide the write access.
------------------------------------------------------------------------
[2006-07-06 16:59:40] flconseil at yahoo dot fr
Description:
------------
The following functions cannot be implemented in a stream wrapper
because the corresponding methods don't exist :
- chgrp & lchgrp
- chown &lchown
- chmod
- flock
- link & symlink/readlink
- touch
To be confirmed for :
- ftruncate
- realpath
For most of these (links, owner, mode), as the values can be returned by
stat/lstat() calls, PHP should provide a way to set/modify them.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=38025&edit=1