[solved]ANNOUCEMENT PHP is Broken.

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

[solved]ANNOUCEMENT PHP is Broken.

Post 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:
Last edited by phpScott on Thu Nov 25, 2004 9:44 am, edited 1 time in total.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

What did you do stomp on it? :lol:
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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 :)
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post 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
Post Reply