Re: CGI/ISAPI Bug recreated...

From: Date: Mon, 23 Apr 2001 20:05:23 +0000
Subject: Re: CGI/ISAPI Bug recreated...
Groups: php.qa 
Request: Send a blank email to php-qa+get-2930@lists.php.net to get a copy of this message
>Ok, Strlen is returning different lengths depending on whether you use CGI or >ISAPI! (oopsy) I bet it's not as simple as that :) Are you running NT4 or W2K? On NT4 I am very lucky if I can get the ISAPI module to run the same script twice. Sometimes it runs ok, other times it dies and I either get a server 500 error or some output along the lines of: <html><head><title>Error</title></head><body>270 (0x0000010e)</body></html> I wonder in your case if php is just dying before it outputs the full string. You might like to try applying the patch Andi sent to the list a couple of days ago to see if things change for you. >Index: TSRM/TSRM.c >diff -u TSRM/TSRM.c:1.30 TSRM/TSRM.c:1.31 >--- TSRM/TSRM.c:1.30 Wed Apr 4 23:43:04 2001 >+++ TSRM/TSRM.c Thu Apr 5 16:00:54 2001 >@@ -337,8 +337,6 @@ > > while (thread_resources) { > if (thread_resources->thread_id == thread_id) { >- tsrm_mutex_unlock(tsmm_mutex); >- > for (i=0; i<thread_resources->count; i++) { > if (resource_types_table[i].dtor) { > >resource_types_table[i].dtor(thread_resources->storage[i]); >@@ -347,7 +345,6 @@ > for (i=0; i<thread_resources->count; i++) { > free(thread_resources->storage[i]); > } >- tsrm_mutex_lock(tsmm_mutex); > free(thread_resources->storage); > if (last) { > last->next = thread_resources->next; Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org

« previous php.qa (#2930) next »