Page 1 of 1

[solved]ANNOUCEMENT PHP is Broken.

Posted: Thu Nov 25, 2004 6:41 am
by phpScott
according to my work mate Sam, I have broken php.:D
this coming from a c, c++ and (shudder)ASP guy. :oops:
so all of php'dom is now broken,
damn infinite loops. :twisted:

Posted: Thu Nov 25, 2004 8:12 am
by neophyte
What did you do stomp on it? :lol:

Posted: Thu Nov 25, 2004 8:19 am
by timvw
ah, php dom functions can go bogus easily :)))

I had words like Béjaïa and using them as value

Code: Select all

$val = $dom->createTextNode($value);
made apache use the cpu 100% (and not lowering after a while)

running htmlentities on the $value first cleared up a little :)

Posted: Thu Nov 25, 2004 8:40 am
by phpScott

Code: Select all

<?php
do
{
     stuff
     while(condition and condition)
    {
     //it really helps not to mess with the condition to much here.        
         more stuff
         if(condition)
         {
              do other stuff
         }
     }
     more stuff
     f(condition)
    {
       yet more silly stuff.
    }
}while(condition)
?>
php is working agian. for now anyway. :D