php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: martin at promotions dot cz
New email:
PHP Version: OS:

 

 [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 11.0.3.3, Zend Optimizer, Apache 1.3.26

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-11 10:32 UTC] nohn@php.net
Are you using a non-threaded webserver like apache 1.3.x? in this case the behaviour, you described is normal. see http://www.php.net/manual/en/features.persistent-connections.php for more information
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 02:01:28 2025 UTC