Dear Marcus:
> most probably the file rights prevent the web server from reading it.
As I mentioned: "PHP actually *can* read the file" -- and even though I
haven't explicitly said, most obviously I implied: from the web server.
> The function works as expected in 4.3.6rc as well as php5.
As I mentioned: no, it does not work as expected, unfortunately, at least in PHP5.
> Apart from that this is neither a bug list nor a support list.
I see. So you mean one cannot ask questions regarding potential PHP
implementation problems here? What then? Besides, let me tell you that I
myself had this concern, so two weeks ago I posted a question here titled
"PHP5: where to go with PHP5 betatesting feedback?" (because I simply
could not find a hint of the correct answer to that question in the available
PHP docs...). Nobody replied. Then, monitoring the postings here I found
probably this might still be a place for such things, considering that the
people, who are most interested in such issues -- the PHP developers
-- are concentrated here quite densely...
Regards,
Szabolcs