[PHP-DEV] Question about where to put the gtk.ini file for php(5)-gtk?

2010-01-06 Thread Joop Boonen
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



Re: [PHP-DEV] Re: alternative to the fopen() hack in autoloaders

2010-01-06 Thread Lukas Kahwe Smith

On 29.12.2009, at 00:25, Ralph Schindler wrote:

> Bump.
> 
> I really think we need to think about this problem that Lukas has brought up.
> 
> Now that the magic words have come up ('counting stat calls'), can we get 
> someone to weight in on the possibility of both having some kind of 
> include_path resolver in the 5.3 branch, and it's impact of stat calls in PHP 
> both without an optimizer and with an optimizer?
> 
> It seems like enough interest is here, as well as code, and those willing to 
> contribute the functionality.. What about on the policy front?
> 
> As you can tell, I am itching to see where this goes ;)


just FYI:
a tweaked stream_resolve_include_path() is scheduled for inclusion in PHP 5.3.3

do note that the next PHP 5.3 release will be 5.3.2, so it will be a few months 
until we will see this feature in a stable release.

regards,
Lukas Kahwe Smith
m...@pooteeweet.org




--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php