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.
XmlDom crash my apache
Moderator: General Moderators
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
-
artois_val
- Forum Newbie
- Posts: 3
- Joined: Fri Jul 05, 2002 4:38 pm
yes ...
Indeed but it's strange that blow up the systeme memory since it shouldn be big.
- chiefmonkey
- Forum Commoner
- Posts: 25
- Joined: Sat Apr 20, 2002 5:21 am
- Location: Glasgow UK
-
artois_val
- Forum Newbie
- Posts: 3
- Joined: Fri Jul 05, 2002 4:38 pm
yes... but ..
Yes, but it crash and windows report the well know : " memory can't be...."
So no log entry relevent to my error is showed ;(
So no log entry relevent to my error is showed ;(