|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18857 pconnect not properly handling connections
Submitted: 2002-08-11 10:13 UTC Modified: 2002-08-11 11:43 UTC
From: martin at promotions dot cz Assigned:
Status: Not a bug Package: Sybase-ct (ctlib) related
PHP Version: 4.2.2 OS: Slackware Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
27 - 26 = ?
Subscribe to this entry?

 [2002-08-11 10:13 UTC] martin at promotions dot cz
I use sybase_pconnect() to create connection to database. But new connections appear and existing ones are not reused nor closed. Database shows: (omitting system connections)
2> sp__who
3> go
 pid loginame   hostinfo             dbname     status   cmd              bk 
 8   mmshop      PHP 4.0 4732        mmshop     recv sle AWAITING COMMAND 0  
 9   mmshop      PHP 4.0 4738        mmshop     recv sle AWAITING COMMAND 0  
 11  mmshop      PHP 4.0 4731        mmshop     recv sle AWAITING COMMAND 0  
 12  mmshop      PHP 4.0 4730        mmshop     recv sle AWAITING COMMAND 0  
 13  mmshop      PHP 4.0 4729        mmshop     recv sle AWAITING COMMAND 0  
 14  mmshop      PHP 4.0 4737        mmshop     recv sle AWAITING COMMAND 0  

But phpinfo() shows:
   Sybase_CT Support      enabled 
Active Persistent Links      0 
Active Links                 0

When using standard sybase_connect(), everything works fine.

Used SW: ASE, Zend Optimizer, Apache 1.3.26


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-11 10:32 UTC]
Are you using a non-threaded webserver like apache 1.3.x? in this case the behaviour, you described is normal. see for more information
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Jan 20 03:03:35 2022 UTC