Web Development Blog

24K Design Studio :: Blog :: PHP: Apache Stopped Working?
Author:
Password:
PHP: Apache Stopped Working?
08:13, 09 Nov, 2010
by David

In Windows, while testing PHP program, have you ever seen "Apache Stopped Working"?

This is the first time when me saw it. I've been familiar with "notice", "warning", and "fatal error" given by PHP. "Fatal error". Is it serious enough? But comparing to "Apache Stopped Working"...

By debugging line by line, the problem was found. It is just a simple infinitely self called function, like:

function showTextArray($param) {
showTextArray($param[0])
}
And the correct one is
function showTextArray($param) {
showText($param[0]);
}

 

Stack overflow (unstopped recursive function) will cause "Apache Stopped Working".

Tags: PHP
Reply:
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 =

Reply
View the latest 5 entries.