On 08/06/2004 6:28 PM, Brion Vibber <brion(a)pobox.com> wrote:
Morbus Iff wrote:
Incidentally, a side note about this. From what
I've read, you cannot
set allow_url_fopen by using ini_set - it's an admin value only. I
think I saw an attempt to turn this off in one of the source files.
Is this "just in case" sorta stuff?
An empirical test on 4.3.2 shows that you can indeed turn
allow_url_fopen on and off via ini_set(), despite what the documentation
says.
They may have changed it and the documentation is incomplete, or it
might be an old bug.
To clarify:
The allow_url_fopen option in php.ini was changed from PHP_INI_ALL to
PHP_INI_SYSTEM in PHP 4.3.5. So if you're running PHP 4.3.5+, you can't set
allow_url_fopen via ini_set().
Paul