UPDATED INFO:
OS Windows 7 32bit Apache 2.2.15 PHP 5.2.13
This is really weird. When I got to this URI in my application:
/view/course/teid/1/cid/-1/pos/30
Apache crashes.
When I go to a very similar URI - like this one:
/view/course/teid/1/cid/-1/pos/29
Everything works fine.
This is from error log:
[Thu Aug 05 11:22:14 2010] [notice] Parent: child process exited with status 255 -- Restarting.
I have been able to track down the line which causes the Apache to crash:
if (true === $aCourseTree->SetNodePassed($node)) { // this line crashes Apache
self::writeTreeToDb($aCourseTree, $training, $this->aUtils);
}
The method is here:
public function SetNodePassed(CourseTreeNode $theNode)
{
$aWasChange = !isset($theNode->Passed) || $theNode->Passed !== true;
$theNode->Passed = true;
if ($aWasChange && isset($theNode->Parent)) {
if (true === $this->AreChildrenPassed($theNode->Parent)) {
$this->SetNodePassed($theNode->Parent);
}
}
return $aWasChange;
}
What the hell is going on? If there is some error, it should just be a PHP error. Why does Apache crash?