Today while evaluating PHP 5.3 I stumbled about a subtle BC break which has already been introduced in PHP 5.2.4. Consider the following code:
class Bar
{
public function dumpBar()
{
var_dump(get_object_vars($this));
}
}
class Foo extends Bar
{
public $public = 'public';
protected $protected = 'protected';
private $private = 'private';
public function dump()
{
var_dump(get_object_vars($this));
}
}
$foo = new Foo();
$foo->dump();
$foo->dumpBar();
Continue reading "Subtle BC break in PHP 5.2.4"