PHP 5.2.4 - Stubblog - Planet PHP

2007-11-10 20:59 来源: web 作者:phpma 网友评论 0 条 浏览次数 3

PHP 5.2.4 - Stubblog - Planet PHP

           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:phpma.com


     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" phpma.com

上一篇:PHP’s Built-In ..    下一篇:Cache it! Solve ..

相关主题:

网友评论