Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46611 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22309 invoked from network); 7 Jan 2010 08:06:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jan 2010 08:06:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=jess@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jess@zend.com; 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:38173] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/AA-12956-AF5954B4 for ; Thu, 07 Jan 2010 03:06:18 -0500 Received: from il-gw1.zend.com (unknown [10.1.1.21]) by il-mr1.zend.com (Postfix) with ESMTP id DD06250467; Thu, 7 Jan 2010 09:50:40 +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:06:15 +0200 Message-ID: <4B4595F7.7060309@zend.com> Date: Thu, 07 Jan 2010 10:06:15 +0200 User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 To: Joop Boonen CC: internals@lists.php.net References: <4B45955C.5070107@zend.com> In-Reply-To: <4B45955C.5070107@zend.com> Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 07 Jan 2010 08:06:15.0250 (UTC) FILETIME=[48B65B20:01CA8F70] Subject: Re: [PHP-DEV] Question about where to put the gtk.ini file for php(5)-gtk? From: jess@zend.com (Jess Portnoy) Just another small comment about PHP_INI_SCAN_DIR, it was introduced in 5.2.7, I assume you're packaging the current stable but just to be on the safe side I thought I'd mention it :) May the source be with you, Best regards, Jess Portnoy Jess Portnoy wrote: > 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. >> >> >> >