Bug 112470 - extension= lines not removed from php.ini on upgrade
extension= lines not removed from php.ini on upgrade
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: php (Show other bugs)
1
athlon Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
David Lawrence
:
: 111545 116780 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-12-20 05:07 EST by Dietmar Kling
Modified: 2007-11-30 17:10 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-01-13 05:15:06 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Php ini that produces the error (23.17 KB, text/plain)
2004-01-10 05:50 EST, Dietmar Kling
no flags Details
Specific Errors of php with the php.ini that doesn't work (37.09 KB, text/plain)
2004-01-10 05:58 EST, Dietmar Kling
no flags Details

  None (edit)
Description Dietmar Kling 2003-12-20 05:07:00 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.4.1)
Gecko/20031114

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
<?php
 $conn = pg_connect("host='localhost' user='myuser' password='xx'  
dbname='mydb' port=5432");

?>
~


Version-Release number of selected component (if applicable):
4.3.3-6

How reproducible:
Always

Steps to Reproduce:
1. install test.php 
2. run test.php
3.
    

Actual Results:  error message in my browser

Expected Results:  connect to database
(this works with psql and i can do selects)

Additional info:

This Fedora Core 1 with all updates
Comment 1 Dietmar Kling 2003-12-25 05:27:58 EST
i recompiled with php-4.3.4.

It still didn't work. 

Then replaced my original (working before i upgraded to fedora) redhat 9
/etc/php.ini 
with the rpmnew
of my 4.3.4 
and GUESS WHAT?

It started to work!
Comment 2 Joe Orton 2004-01-07 12:09:57 EST
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
Comment 3 Dietmar Kling 2004-01-10 05:50:00 EST
Created attachment 96873 [details]
Php ini that produces the error
Comment 4 Dietmar Kling 2004-01-10 05:58:06 EST
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.
Comment 5 Joe Orton 2004-01-13 10:22:44 EST
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.
Comment 6 Joe Orton 2004-01-21 11:26:02 EST
*** Bug 111545 has been marked as a duplicate of this bug. ***
Comment 7 Joe Orton 2004-01-21 12:39:55 EST
Fixed in 4.3.4-5 in Raw Hide: leaving this report open to be fixed in
future FC1 updates.
Comment 8 Joe Orton 2005-01-13 05:20:59 EST
*** Bug 116780 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.