maz.net.au

Maz

Warning! Camera related content ahead!


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.
if($__pth->isValid() && $__pth->isAllowed())
{
// 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
Half the reason for that rant was to test the RSS generator. It would appear that the webserver is being increasingly choked with processes and it would generate the RSS before the file lock for the save released it. Hence not showing the last post in RSS.
# Comment by Maz on 23 Jan 2006 @ 01:45 pm


Valid XHTML 1.0 Strict Valid CSS! Powered by PHP No Database

Menu




Powered by:
Powered by MOSS