Re: Allowing [SAPI=] entries in ini files.
2013/11/16 Richard Quadling <rquadling@gmail.com>
> Hi.
>
> I created a patch https://github.com/php/php-src/pull/466 to allow
> ini
> files to have a SAPI section, just like they can have a HOST and PATH
> section.
>
> My use case is that the provider we are currently using does not allow us
> to have our own INI file, just the additional directory, and there is no
> way to differentiate between a CLI and a FAST-CGI setup in the additional
> directory.
>
> The patch allows [SAPI=xxx] sections and they operate in a very similar way
> to the [HOST] and [PATH] sections.
>
> Please can this be considered for inclusion into PHP at some stage.
>
> Regards,
>
> Richard Quadling.
>
Hi,
Just my 2 cents, but that sounds more like an issue with your
provider/hoster and not with PHP. I always thought of the additional
php.ini as a way to change some details and not a way to set up the whole
runtime. Especially when a user has write access to that file it seems to
me also an security issue, when PHP allows to set/change critical settings
there.
tl;dr: There is probably a reason, why your provider doesn't allow you to
change php.ini settings directly.
Regards,
Sebastian
--
github.com/KingCrunch
Thread (16 messages)