Edit report at https://bugs.php.net/bug.php?id=53358&edit=1
ID: 53358 Updated by: m...@php.net Reported by: pophal at tubit dot tu-berlin dot de Summary: API queries in php.ini -Status: Closed +Status: Re-Opened Type: Feature/Change Request Package: PHP options/info functions PHP Version: * Assigned To: mike Block user comment: N Private report: N New Comment: Sorry, there actually is a PR for that: See bug #65681 and PR #466 https://github.com/php/php-src/pull/466 Previous Comments: ------------------------------------------------------------------------ [2013-09-30 12:16:28] m...@php.net We already have SAPI INIs. ------------------------------------------------------------------------ [2010-11-19 17:47:53] pophal at tubit dot tu-berlin dot de Description: ------------ I would rather appreciate a php ini section analogous to [HOST=] querying the SAPI, e.g. [SAPI=CLI] extension = php-gtk2.so in order to prevent the extension from being loaded when PHP is running as apache module or cgi. This would be helpful for distributions with like php.ini regardless of SAPI, in contrast to debian with its API-depending php.ini location. A workaround is a modified shebang line: #!/usr/bin/php -d extension=php_gtk2.so but this cannot be considered a good solution. Maybe this is not only php-gtk related. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=53358&edit=1