svn: /php/php-src/branches/PHP_5_4/ UPGRADING

From: Date: Sat, 06 Aug 2011 15:57:36 +0000
Subject: svn: /php/php-src/branches/PHP_5_4/ UPGRADING
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-65718@lists.php.net to get a copy of this message
felipe Sat, 06 Aug 2011 15:57:36 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=314381 Log: - Added change to UPGRADING Changed paths: U php/php-src/branches/PHP_5_4/UPGRADING Modified: php/php-src/branches/PHP_5_4/UPGRADING =================================================================== --- php/php-src/branches/PHP_5_4/UPGRADING 2011-08-06 15:52:41 UTC (rev 314380) +++ php/php-src/branches/PHP_5_4/UPGRADING 2011-08-06 15:57:36 UTC (rev 314381) @@ -101,7 +101,21 @@ To create a generic object you can use StdClass: $test = new StdClass; $text->baz = 1; + +- It's now possible to enforce the class' __construct arguments in an abstract + constructor in the base class. + abstract class Base + { + abstract public function __construct(); + } + class Foo extends Base + { + public function __construct($bar) {} + } + + Now emits a Fatal error due the incompatible declaration. + ===================================== 4. Changes made to existing functions =====================================

« previous php.cvs (#65718) next »