Bugfixes already
In category Site on 23 Jan 2006 @ 01:43 pm
What can I say? I was having really obscure problems once I uploaded my code to my active webserver which is running linux not windows. This shouldn't have made any difference but it did. So I have been making a few changes as I go but nothing really major, only about 10 lines difference since the first release.
The weirdest problem I had was actually causing a core dump of the linux thread. It all came down to a single line of code that checked the validity of the argument in the same line that it checked the permissions for the user to access it.
Would cause an infinite loop and a kernel panic. Break that check into 2 seperate if statements and everything is fine. Sometimes you just can't be too careful.
geekily Maz
The weirdest problem I had was actually causing a core dump of the linux thread. It all came down to a single line of code that checked the validity of the argument in the same line that it checked the permissions for the user to access it.
if($__pth->isValid() && $__pth->isAllowed())
{
// run stuff
}
else
{
// run a theoretically valid and allowed path.
}
{
// run stuff
}
else
{
// run a theoretically valid and allowed path.
}
Would cause an infinite loop and a kernel panic. Break that check into 2 seperate if statements and everything is fine. Sometimes you just can't be too careful.
geekily Maz




# Comment by Maz on 23 Jan 2006 @ 01:45 pm