ID:               15333
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         IIS related
 Operating System: Windows 2000 Pro
 PHP Version:      4.1.1
 New Comment:

Nevermind.  That's not the problem.  Still looking.


Previous Comments:
------------------------------------------------------------------------

[2002-04-04 13:23:18] [EMAIL PROTECTED]

I think I've found the problem:

ZEND_API char *zend_strndup(const char *s, uint length)
{
        char *p;

        p = (char *) malloc(length+1);
        if (!p) {
                return (char *)NULL;
        }
        if (length) {
                memcpy(p, s, length);
        }
        p[length] = 0;
        return p;
}


If this is changed to 

ZEND_API char *zend_strndup(const char *s, uint length)
{
        char *p;

        p = (char *) malloc(length+1);
        if (!p) {
                return (char *)NULL;
        }
        if (length) {
                memcpy(p, s, length);
                p[length] = 0;
        }
        return p;
}

does that break anything?  I think the problem comes in when length==0.
 I can't really reproduce this problem though.  I saw it once a couple
of days ago, but havn't seen it since.

Also will one of you that's having this problem please check to see if
4.2.0 RC 2 still has this problem?  Since 4.2.0 is going to be released
really soon now, I'd like to get this worked through (but if it doesn't
happen anymore under 4.2.0 then we're worrying about nothing).

------------------------------------------------------------------------

[2002-04-04 10:27:27] [EMAIL PROTECTED]

I've been having the same problem.

Win2k (All security updates)
IIS 5.0
Pentium III 733
ISAPI Version 4.1.2

I switched security on each virtual directory to 'Low(IIS Process) and
haven't gotten the error since.  This isn't a satisfactory fix, but
maybe it'll help figure out what is causing the problem.

------------------------------------------------------------------------

[2002-04-04 10:09:46] [EMAIL PROTECTED]

Bug #16362 was marked a duplicate of this bug.

------------------------------------------------------------------------

[2002-04-03 19:35:48] [EMAIL PROTECTED]

I got this error after aplying the lateste security updates on my win2k
server. It works fine at the begginig but after 5 mins I get this
error. It hangs all the IIS service. 

This doesn't happen in CGI mode.

OS: Win2K Server
Patches: SP2 + Lateste Security updates
System: P3 @ 550 Mhz - 256 MB RAM
PHP VER: 4.1.2.
PHP Mode: ISAPI

------------------------------------------------------------------------

[2002-02-19 09:06:12] [EMAIL PROTECTED]

Nope, I am not using Zend Encoder or Optimizer.  Just running plain PHP
for now.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/15333

-- 
Edit this bug report at http://bugs.php.net/?id=15333&edit=1

Reply via email to