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.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php