|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-07-06 16:59 UTC] 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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 01:00:01 2025 UTC |
I implemented my own stream, named "localexe" on the Windows platform (using C, not php user streams). 1) The realpath('localexe://localhost/teststream.php'); should return "localexe://localhost/teststream.php", because it exists. Currently it returns false. 2) The chdir('localexe://localhost/'); results in "Warning: chdir() [function.chdir]: No such file or directory (errno 2) in localexe://localhost/teststream.php on line 383" 3) Because chdir(); does not work with streams, the include('./testinclude1.php'); also doesn't work. ---- I tracked down in the sources to tsrm_virtual_cwd.h. This is a layer on Windows to implement GetCurrentDirectory() avoiding thread issues. This layer can't handle any custom stream, it always uses the local filesystem. I think this is the main problem.