I've been doing some debugging of the crashes when running PHP under
the ISAPI sapi.  Is anybody else currently looking at this?  If you are
let's talk - here are my notes so far.

I can make my install of PHP (4.2.1, a debug build) throw an exception
on the first load after an IISReset 90% of the time.  My code is a PHP
page that loads another PHP page as the stylesheet - so I end up with
two PHP page loads running at the same time.  The exception is thrown
in the php_request_shutdown call at the end of the HttpExtensionProc. 
I'm working on tracking down where the exception is coming from, but
one thing I've noticed so far is that the first thread that gets to the
shutdown_memory_manager call (inside php_request_shutdown) reports a
lot of leaks.  I find this to be quite odd, and am beginning to wonder
if it is mis-reporting the memory of the second thread as if they were
leaks of the first.  It's just a hunch so far - I haven't been able to
come up with any evidence, and my understanding of the thread-safe
memory managment is quite shallow.

Having done some more work I believe that the exception I'm getting is
coming from inside the zend_hash_reverse_apply call in
shutdown_executor.  The one to clear the function_table completes
correctly, but then the class_table one fails (my main PHP file does
include a series of classes).

Michael Sisolak
[EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to