Bug #10113 Updated: allow_persistent directive doesn't work

From: Date: Wed, 12 Dec 2001 08:19:14 +0000
Subject: Bug #10113 Updated: allow_persistent directive doesn't work
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-73226@lists.php.net to get a copy of this message
ID: 10113 Updated by: yohgaki Reported By: martin@schapendonk.org Old Status: Open Status: Feedback Bug Type: PHP options/info functions Operating System: Linux PHP Version: 4.0.4pl1 New Comment: Could you check if this problem exists in 4.1.0? Previous Comments: ------------------------------------------------------------------------ [2001-04-02 09:12:53] martin@schapendonk.org To prevent the use of persistent connections I've put the following lines in my php.ini: mysql.allow_persistent = Off ; pgsql.allow_persistent = Off ; When I look at the output of phpinfo() I can see that PHP reads my settings, because it reports persistent links to be off. Nevertheless, PHP still allows persistent connections, so every now and then I run out of available database backends because too many of them are idling. I solved this problem by patching the source code (modified ext/pgsql/pgsql.c line 462 and ext/mysql/php_mysql.c line 597, changed "1" into "0"), but I do not consider this as a 'clean' solution, since I have to patch the source every time I update PHP. You can view phpinfo()'s output at: http://www.schapendonk.org/config Thanks for your time to look into this problem. Regards, Martin Schapendonk ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=10113&edit=1

« previous php.dev (#73226) next »