php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10113 allow_persistent directive doesn't work
Submitted: 2001-04-02 09:12 UTC Modified: 2002-01-02 13:53 UTC
From: martin at schapendonk dot org Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 4.0.4pl1 OS: Linux
Private report: No CVE-ID: None
 [2001-04-02 09:12 UTC] martin at schapendonk dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-12 03:19 UTC] yohgaki@php.net
Could you check if this problem exists in 4.1.0?
 [2002-01-02 13:53 UTC] lobbin@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC