Re: Re: allow_url_fopen should be INI_ALL

From: Date: Mon, 27 Jun 2005 07:29:06 +0000
Subject: Re: Re: allow_url_fopen should be INI_ALL
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-16925@lists.php.net to get a copy of this message
On Mon, 27 Jun 2005, Stefan Esser wrote: > From my point of view it would have been better to have another ini directive > like allow_url_includes that defaults to off. However under no circumstances > allow_url_fopen can be turned back to INI_ALL. An admin has to decide if he > allows any kind of access to remote files and this is his only way to achieve > disabling remote file wrappers. > > Without a new ini directive I only see the possibility to build an emulation > layer: > > Sys: allow_url_fopen = Off -> User: ini_set("allow_url_fopen",1) fails > Sys: allow_url_fopen = On -> User: ini_set("allow_url_fopen",0/1) works You can use in httpd.conf: php_admin_value allow_url_fopen 0 which users can not override already... so I don't see the point of implementing the behavior that you have (otherwise it's a good idea). What we should perhaps do is revert the change that made allow_url_fopen back to INI_ALL... regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

« previous php.internals (#16925) next »