Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46610 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21150 invoked from network); 7 Jan 2010 08:03:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jan 2010 08:03:45 -0000 Authentication-Results: pb1.pair.com header.from=jess@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jess@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.185 as permitted sender) X-PHP-List-Original-Sender: jess@zend.com X-Host-Fingerprint: 212.25.124.185 il-mr1.zend.com Received: from [212.25.124.185] ([212.25.124.185:40959] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/5A-12956-F55954B4 for ; Thu, 07 Jan 2010 03:03:44 -0500 Received: from il-gw1.zend.com (unknown [10.1.1.21]) by il-mr1.zend.com (Postfix) with ESMTP id C68B6504F2; Thu, 7 Jan 2010 09:48:05 +0200 (IST) Received: from [10.1.2.102] ([10.1.2.102]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 Jan 2010 10:03:40 +0200 Message-ID: <4B45955C.5070107@zend.com> Date: Thu, 07 Jan 2010 10:03:40 +0200 User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 To: Joop Boonen CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 07 Jan 2010 08:03:40.0142 (UTC) FILETIME=[EC42C0E0:01CA8F6F] Subject: Re: [PHP-DEV] Question about where to put the gtk.ini file for php(5)-gtk? From: jess@zend.com (Jess Portnoy) Hello, There is an ENV var called PHP_INI_SCAN_DIR, when exported, it can override the default scandir set during compilation. You can set this in an RC file sourced by apachectl. From you description I can tell you're packaging an RPM for it so, as I'm sure you're aware, you need to think of the best way to accomplish this as an RPM cannot just run wild and has to consider fitting in the general scheme of things and that may make it somewhat difficult :) About GTK, what exactly happens? It should not crash the PHP module but I admit I never tried and am not familiar with the problem. In my personal opinion, if the extension cannot load under some SAPI, it should be disabled. That is, PHP_MINIT should include a check of SAPI and return FAILURE in the event the current SAPI cannot be operated under. Another extension I guess should do that is PCNTL, known not to work well in web server context. May the source be with you, Best regards, Jess Portnoy Joop Boonen wrote: > All, > > I have a question. I'm building the php(5)-gtk package. But when I put the > gtk.ini in /etc/php5/conf.d which is the "--with-config-file-scan-dir". > php programs like cacti that are accessed via apache don't run any more. > As it also want to start up gtk but it fails because it doesn't have a > display. Which is logical and also wanted. > > As the gtk.ini file should only be in cli (and not apache etc), I'm > wondering how this issue could be best handled? > > Is there a way to put two directories in --with-config-file-scan-dir like > --with-config-file-scan-dir=%{php_sysconf}/conf.d > %{php_sysconf}/$sapi/conf.d > > Regards, > > Joop. > > >