# About Bug #14049 and more

- Thread: https://externals.io/message/4632
- Original archive: https://news-web.php.net/php.internals/4632
- Started by Tvrtko Ursulin on 2003-10-01T08:34:40+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #4632 — Tvrtko Ursulin — 2003-10-01T08:34:40+00:00

URL: https://externals.io/message/4632#4632

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?
