About Bug #14049 and more

php.internals

Tvrtko Ursulin

22 years ago
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?