Red Hat Bugzilla – Bug 112470
extension= lines not removed from php.ini on upgrade
Last modified: 2007-11-30 17:10:34 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.4.1)
Description of problem:
Warning: pg_connect(): Cannot create new link. Too many open links
(0). in /var/www/html/test.php on line 3
There is no connection open to postgres
Postgres does work. Can connect with psql and do selects
port 5432 does work
test.php to reproduc
$conn = pg_connect("host='localhost' user='myuser' password='xx'
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. install test.php
2. run test.php
Actual Results: error message in my browser
Expected Results: connect to database
(this works with psql and i can do selects)
This Fedora Core 1 with all updates
i recompiled with php-4.3.4.
It still didn't work.
Then replaced my original (working before i upgraded to fedora) redhat 9
with the rpmnew
of my 4.3.4
and GUESS WHAT?
It started to work!
Can you attach your /etc/php.ini? What happens if you change the
pgsql.max_links setting in php.ini to e.g.
pgsql.max_links = 100
Created attachment 96873 [details]
Php ini that produces the error
Created attachment 96874 [details]
Specific Errors of php with the php.ini that doesn't work
Somehow the registring of pgsql module doesn't work.
OK, thanks. It's a migration issue: when upgrading to FC1 from RHL9
or earlier, /etc/php.ini needs to be edited to remove the
inappropriate extension= lines which are now loaded via /etc/php.d/*.ini.
*** Bug 111545 has been marked as a duplicate of this bug. ***
Fixed in 4.3.4-5 in Raw Hide: leaving this report open to be fixed in
future FC1 updates.
*** Bug 116780 has been marked as a duplicate of this bug. ***