svn: /php/php-src/ branches/PHP_5_4/Zend/tests/traits/bug55214.phpt branches/PHP_5_4/Zend/zend_compile.c branches/PHP_5_4/Zend/zend_constants.c
branches/PHP_5_4/Zend/zend_execute_API.c branches/PHP_5_4/Zend/zend_language_parser.y branches/PHP_5_4/Zend/zend_language_scanner.l
branches/PHP_5_4/ext/reflection/tests/traits001.phpt trunk/Zend/tests/traits/bug55214.phpt trunk/Zend/zend_compile.c trunk/Zend/zend_constants.c
trunk/Zend/zend_execute_API.c trunk/Zend/zend_language_parser.y trunk/Zend/zend
| From: | Dmitry Stogov | Date: | Tue, 17 Jan 2012 08:09:13 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_4/Zend/tests/traits/bug55214.phpt branches/PHP_5_4/Zend/zend_compile.c branches/PHP_5_4/Zend/zend_constants.c branches/PHP_5_4/Zend/zend_execute_API.c branches/PHP_5_4/Zend/zend_language_parser.y branches/PHP_5_4/Zend/zend_language_scanner.l branches/PHP_5_4/ext/reflection/tests/traits001.phpt trunk/Zend/tests/traits/bug55214.phpt trunk/Zend/zend_compile.c trunk/Zend/zend_constants.c trunk/Zend/zend_execute_API.c trunk/Zend/zend_language_parser.y trunk/Zend/zend |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-67452@lists.php.net to get a copy of this message | ||
dmitry Tue, 17 Jan 2012 08:09:13 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=322378
Log:
Improved traits implementation. Now to support __CLASS__ constant in traits php doesn't have to
copy the complete compiled method, but can reuse the same code. The resolution of __CLASS__
constants in methods defined in traits are delayed till run-time. This approach also made possible
to use __CLASS__ constant as default value for traits properties and method arguments.
Changed paths:
U php/php-src/branches/PHP_5_4/Zend/tests/traits/bug55214.phpt
U php/php-src/branches/PHP_5_4/Zend/zend_compile.c
U php/php-src/branches/PHP_5_4/Zend/zend_constants.c
U php/php-src/branches/PHP_5_4/Zend/zend_execute_API.c
U php/php-src/branches/PHP_5_4/Zend/zend_language_parser.y
U php/php-src/branches/PHP_5_4/Zend/zend_language_scanner.l
U php/php-src/branches/PHP_5_4/ext/reflection/tests/traits001.phpt
U php/php-src/trunk/Zend/tests/traits/bug55214.phpt
U php/php-src/trunk/Zend/zend_compile.c
U php/php-src/trunk/Zend/zend_constants.c
U php/php-src/trunk/Zend/zend_execute_API.c
U php/php-src/trunk/Zend/zend_language_parser.y
U php/php-src/trunk/Zend/zend_language_scanner.l
U php/php-src/trunk/ext/reflection/tests/traits001.phpt
Attachment: [text/x-diff] svn-diffs-322378.txt
Attachment: [text/x-diff] svn-diffs-322378.txt