shared extensions don't load there default ini settings

php.internals

Edin Kadribasic

22 years ago
Hi, This problem noticed in HEAD with pgsql extension for example. When loaded via php.ini it does not function since it thinks that the maximum number of connections is exhausted. None of the other php.ini settings seem to be registered. Could this be related to the patch preventing loading extension twice? Edin

su1d

22 years ago
> This problem noticed in HEAD with pgsql extension for example. When loaded > via php.ini it does not function since it thinks that the maximum number
of
> connections is exhausted. None of the other php.ini settings seem to be > registered.
Actually, it neither gets loaded with dl() call. That means extension_loaded('pgsql') returns true, but ini_get_all('pgsql') returns an empty array in both cases (via php.ini or dl() call).
> Could this be related to the patch preventing loading extension twice?
Have there been any? That's a bit strange, because if you put display_startup_errors=On in php.ini and try to execute at least "php -v", you get a pretty bunch of "Constant has already been defined" warnings, displaying constants of all(?) extensions.