Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php encountered a stack overflow.

Status
Not open for further replies.

Gamthalion

Technical User
Mar 1, 2006
2
NL
Hello there.

I am having some odd problems whit php.
I tried to use a "roster" a php application that able's outside users to upload ingame data to my mysql Database and puts it in a nice html page.
But every time I or another person wants to upload the data I get this error "php encounters a stack overflow".
I don't know why I get the error neither do I know what it is related to.
Some one told me it had to do whit "ISAPI" I had to change it to "CGI executable" ?? not sure if that is wise I don't know if it has bad results for the rest of my php abdications iI am using now.

Could some one please tell me what the "php encountered a stack overflow" means and how I solve it ??
I would be so grateful because I need this program online badly.

Thanks and greets Gamthalion.
 
1) Switching to CGI should be functionally equivalent, but will be noticeably slower and is not recomended by the PHP manuals.

2) A stack overflow means a program crashed because it wasn't playing nice with the memory system... I'm not sure if PHP encountered means PHP crashed, or you were shelling out to something that did.

Is this happening with some program which you added to PHP? If so I suggest contacting the developer... is this happening with a program you wrote? If so I'd suggest doing some debugging and coming back here with specific questions about what code is causing your problem.
 
Without knowing more details it's nearly impossible to answer your question in anything more than the most general terms. We can infer from your mention of ISAPI that you're running PHP under IIS, but that's about it.

Most stack overflows I've seen involve recursive code that doesn't know when to quit recursing. However, whether or how that applies to your code is impossible to say.




Want the best answers? Ask the best questions! TANSTAAFL!
 
I solved the problem, I am running CGI now but on fast mode so not much lost of speed.
The problem is a program error in the php aplication I am trying to use not a php problem I dont like running CGI instead of ASAPI but I dont know hot to fix it jet.
Cant send you the code because its not in the config code not in the php index either.
But my problem is solved and I thank you very much for your time.
Take care till we meet next time.
Greets webmaster G.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top