Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70209 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51863 invoked from network); 19 Nov 2013 18:52:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2013 18:52:15 -0000 Authentication-Results: pb1.pair.com header.from=krebs.seb@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.173 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@gmail.com X-Host-Fingerprint: 74.125.82.173 mail-we0-f173.google.com Received: from [74.125.82.173] ([74.125.82.173:53745] helo=mail-we0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 72/F5-15197-D53BB825 for ; Tue, 19 Nov 2013 13:52:14 -0500 Received: by mail-we0-f173.google.com with SMTP id t61so1454870wes.4 for ; Tue, 19 Nov 2013 10:52:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=v/W+AroWKvArC/wE27mJaCWVCqmeHmhuzWhFbCaWkoA=; b=VaElxj7pb/57/MFgK+cBZTbh163qY2i4tBAj7Qak0gTlCuxNJ+D57hs8v/Cq87C/gT dxsZ/VMRFqZj/MzuxE7NOFaQ/wMFMAAFi+9NaDdShmsA5M0gnk+z15g04Z2xKm4f1zQS h/mNmn7NnlyoFsT8HRKuE9zh0nerE5Me8VEmiNVShexG1kEoj2IcNuoRixm/ePw2pUpo Gb3Wjfm0Wgrn4v0z1oOftn8f88npQTkB7mGBRA1joBF42llxlXPLtlPehunBqQcldITZ DkrhxCBJo2JBF3CJ7yk8+ODlN8FlUNUR3Mz2tHAOke2M8DqIJ9jHBh8CFxmZ7QrvZvPm EZoA== X-Received: by 10.180.86.102 with SMTP id o6mr22234118wiz.30.1384887130750; Tue, 19 Nov 2013 10:52:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.5.9 with HTTP; Tue, 19 Nov 2013 10:51:30 -0800 (PST) In-Reply-To: References: Date: Tue, 19 Nov 2013 19:51:30 +0100 Message-ID: To: Richard Quadling Cc: PHP internals Content-Type: multipart/alternative; boundary=f46d044281727b85e404eb8c29e3 Subject: Re: [PHP-DEV] Allowing [SAPI=] entries in ini files. From: krebs.seb@gmail.com (Sebastian Krebs) --f46d044281727b85e404eb8c29e3 Content-Type: text/plain; charset=ISO-8859-1 2013/11/16 Richard Quadling > 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 --f46d044281727b85e404eb8c29e3--