About Bug #14049 and more
| From: | Tvrtko Ursulin | Date: | Wed, 01 Oct 2003 08:34:40 +0000 |
| Subject: | About Bug #14049 and more | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-4632@lists.php.net to get a copy of this message | ||
Hello,
I see that in 4.3.4RC1 this bug is fixed. Can someone please give me a hint
where to find the patch only for that one?
I investigated a little because some time ago I made a patch that solves the
following problem.
Explanation:
When open_basedir is in effect the following operation fails because of
open_basedir restriction which I think is wrong:
fopen("path/exists/file_doesnt","w");
It should not fail, or maybe with EACCESS if appropriate.
So my patch (attached) makes sure that realpath successfully resolves
non-existent paths. It does so by checking errno after realpath call, and
in case it is ENOENT, it ignores the error.
Can anybody comment on this?
Attachment: [text/x-diff] php-4.3.3-basedir-symlinks.patch
Attachment: [text/x-diff] php-4.3.3-basedir-symlinks.patch