Just to complete this thread

RHase wrote
"think that is no "problem", no bug and it should not be "solved" within the class.database.php."
You can "think" whatever you like ofcourse, but the code at the time was awful. It gave out an OO interface but didn't act like one. It was purely procedural php wrapped inside a class definition. You could instantiate one, and one only. So, it was broken. It didn't save a database handle inside the 'php object'. It was broken. I thought it suffered a bit of the phpbb syndrome (looks nice, so people think the code is nice).
It was worse though, the initialize method didn't just initialize the object, it made the connection to the (mysql) database and *loads* of other things.
It was just awful code.
It was never trying to be a "framework", so should have stayed out of the way there too.
PHP isn't perfect, but that was awful.
I think the coders were just refactoring the code to be ready for PHP5? So they *could* be more OO.
I solved it by rewriting that class so the objects stored the db handle. Simple. It worked, and still works wonderfully for them. But that change propagated up the code, and it worked for the site I was doing, but the changes I had to make to use postgres meant I rewrote the database stuff altogether.
I decided I may as well write a cms for the niche market I was targetting myself. It works well (and I didn't choose php).
Website baker was the closest thing to what I wanted. For a general purpose CMS, I know of nothing better. KISS.
So the "problem" *was* a bug. It was broken and was "solved" in "class.database.php".
Gav
(a year later)