XmlDom crash my apache
Posted: Fri Jul 05, 2002 4:38 pm
Hello,
Anyone have encoutered this kind of bug, this code crash apache (2 and 1) on an infamouse windows box
$docXml= domxml_new_doc("1.0");
$xRoot = CreateXmlNode($docXml,"xnds:dataset");
$xRoot->set_attribute("name","value");
for($a=0;$a<=3000;$a++) {
$rText = $docXml->create_element("<span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>");
$rText = $xRoot->append_child($rText);
}
it`s work with low value (in the for) but when it get hight, kaabboom !
I will appreciate any help , thanks
ps. i'm a newbie in php.
Anyone have encoutered this kind of bug, this code crash apache (2 and 1) on an infamouse windows box
$docXml= domxml_new_doc("1.0");
$xRoot = CreateXmlNode($docXml,"xnds:dataset");
$xRoot->set_attribute("name","value");
for($a=0;$a<=3000;$a++) {
$rText = $docXml->create_element("<span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>");
$rText = $xRoot->append_child($rText);
}
it`s work with low value (in the for) but when it get hight, kaabboom !
I will appreciate any help , thanks
ps. i'm a newbie in php.