php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10597 RE #5684: PHP Intermittently reports "Unable to allocate connection record"
Submitted: 2001-05-02 02:40 UTC Modified: 2002-01-08 01:53 UTC
From: tysonlt at webmedia dot com dot au Assigned:
Status: Closed Package: Sybase-ct (ctlib) related
PHP Version: 4.0.5 OS: RedHat 6.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tysonlt at webmedia dot com dot au
New email:
PHP Version: OS:

 

 [2001-05-02 02:40 UTC] tysonlt at webmedia dot com dot au
RE #5684,

You asked for any other cases: I get this error when I use a custom error handler to catch sybase errors. For example, if I try to delete a record with children in other tables, it raises a FK constraint violation error...everything normal.

But after that error, where I try to do database reads and writes in my error handler function, I get really wierd problems. The main problem is that ctlib start reporting level 10 errors, instead of level 11, eg:

   DB ERROR: Changed database context to 'xxx'. 

After this, I get "cannot allocate connection record." This only happens after I catch the error. If I turn off my error handling function, everything is fine.

This says to me that the ctlib (or PHP) can't carry on after an error. But then I know little about either :)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-18 13:36 UTC] lobbin@php.net
Does this still happen with PHP 4.1.0?

R.
 [2002-01-08 01:53 UTC] lobbin@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Mar 03 02:01:24 2021 UTC