# Ifx - Help ! losing my mind, thread by thread

- Thread: https://externals.io/message/4119
- Original archive: https://news-web.php.net/php.internals/4119
- Started by Corne' cornelius on 2003-08-21T09:55:18+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #4119 — Corne' cornelius — 2003-08-21T09:55:18+00:00

URL: https://externals.io/message/4119#4119

Hi,

Please help, after a 72 hour debugging session my mind feels dimished 
past the size of a dustmite-parasite.

Call me stupid if you want.

Can you give me some extra tips on debugging PHP, threads, lists, etc.. 
and how i can track the flow of the shutdown of a script execution/timeout.

The Ifx extension doesn't always close the connection to an Informix 
database after ifx_close(), and what are the odds of being attached to 
the specific sessions which this happens in when it's more random then a 
bag of M&M's.

Is it possible that:

    *  the resource list gets dtor'd, while the ifx connection is quite
      busy and can't disconnect right away, but the resource still gets
      whacked from the list ? or will the dtor wait for the resource
      destructor to finish ?
    * another ZEND_FETCH_RESOURCE() is called during a destructor
      function or do mutexes prevent this ?

How is it possible that:

    * ifx_connect() can find a connection from another sessions
      EG(regular_list) ? i thaught EG(regular_list) is private to each
      session ?


Thanks,
Corne'

!Exclude Disclaimer!

---

## #4120 — Corne' cornelius — 2003-08-21T13:48:19+00:00

URL: https://externals.io/message/4119#4120 · In reply to: #4119

no worries, i figured it out. sorry for flooding the list after horribly
confuzing myself.

Have a good one =)


Corne' cornelius wrote:

 > Hi,
 >
 > Please help, after a 72 hour debugging session my mind feels dimished
 > past the size of a dustmite-parasite.
 >
 > Call me stupid if you want.
 >
 > Can you give me some extra tips on debugging PHP, threads, lists,
 > etc.. and how i can track the flow of the shutdown of a script
 > execution/timeout.
 >
 > The Ifx extension doesn't always close the connection to an Informix
 > database after ifx_close(), and what are the odds of being attached to
 > the specific sessions which this happens in when it's more random then
 > a bag of M&M's.
 >
 > Is it possible that:
 >
 >    *  the resource list gets dtor'd, while the ifx connection is quite
 >      busy and can't disconnect right away, but the resource still gets
 >      whacked from the list ? or will the dtor wait for the resource
 >      destructor to finish ?
 >    * another ZEND_FETCH_RESOURCE() is called during a destructor
 >      function or do mutexes prevent this ?
 >
 > How is it possible that:
 >
 >    * ifx_connect() can find a connection from another sessions
 >      EG(regular_list) ? i thaught EG(regular_list) is private to each
 >      session ?
 >
 >
 > Thanks,
 > Corne'
 >
 > !Exclude Disclaimer!
