Tuesday, August 28, 2007

php5 likes transitive access levels?

When working on a singleton class in php, I noticed a funny behaviour.
The following code will lead to an error

Access level to B::__construct() must be public (as in class A)


class A
{
public function __construct(){}
}
class B extends A
{
private function __construct()
{
parent::__construct();
}
}
$B = new B();
?>

Weird...

Friday, August 17, 2007

Yet another CD recommendation



Richie Sambora, who probably makes most of his fame by working in the Bon Jovi Band, has made some really good solo stuff in the 90s and probably before (I don't know). As far as I'm concerned, this is the best I've heard from him.

Check out my favourite track [Hard times come easy] from this album