Req #53358 [Opn->Csd]: API queries in php.ini
Edit report at https://bugs.php.net/bug.php?id=53358&edit=1
ID: 53358
Updated by: mike@php.net
Reported by: pophal at tubit dot tu-berlin dot de
Summary: API queries in php.ini
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: PHP options/info functions
PHP Version: *
-Assigned To:
+Assigned To: mike
Block user comment: N
Private report: N
New Comment:
We already have SAPI INIs.
Previous Comments:
------------------------------------------------------------------------
[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
Thread (6 messages)