Jump to content

[SOLVED] php-cgi.exe - Application Error 0xC00000FD (STACK_OVERFLOW)


pkedpker

Recommended Posts

Everytime I try to open my webiste I get a red X messagebox saying I have a STACK_OVERFLOW.

 

I use PHP 5.2.3.

 

all my pages had

if (!session_is_registered('username'))  {

  echo 'You must login please';

}

 

So I replaced them all with new function i made isLogin()

 

found the ERROR it.. hehe solved just for anyone wondering where the problem was.. it was my dang notepad It replaced too much stuff.

 

this gave me a stack_overflow

 

function isLogin()
{
if (!isLogin())  {
	return false;
} else {
	return true;
}
}

 

it's a endless recursive call to isLogin()

 

the correct one was

 

function isLogin()
{
if (!session_is_registered('username'))  {
	return false;
} else {
	return true;
}
}

 

just for reference.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.