From: matt at coffeecup dot com Operating system: Red Hat Enterprise Linux ES 2.1 PHP version: 4.3.3 PHP Bug Type: PostgreSQL related Bug description: Cannot Connect to postgres database
Description: ------------ I upgraded to php 4.3.3, and started receiving this error when connecting to postgres: PHP Warning: pg_connect(): Cannot create new link. Too many open links (0). I use the same configure line with php 4.3.2: ./configure --with-apxs=/usr/local/apache/bin/apxs --with-curl --with-xml --with-mysql=/usr --with-ssl --with-mcrypt --enable-xslt-sablot --with-gd --with-jpeg-dir=/usr/bin/cjpeg --with-zlib --with-ttf --with-pgsql php.ini file remains the same: ; Maximum number of links (persistent+non persistent). -1 means no limit. pgsql.max_links = -1 When I re-install 4.3.2, the problem goes away. Reproduce code: --------------- $bd_db = pg_connect ("host=$hostname dbname=$database_name user=$username password=$password"); Expected result: ---------------- A connection to the database given Actual result: -------------- PHP Warning: pg_connect(): Cannot create new link. Too many open links (0). -- Edit bug report at http://bugs.php.net/?id=25628&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25628&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25628&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25628&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25628&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25628&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25628&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25628&r=support Expected behavior: http://bugs.php.net/fix.php?id=25628&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25628&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25628&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25628&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25628&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25628&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25628&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25628&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25628&r=float