#
565892d4 |
| 15-Apr-2012 |
Xinchen Hui |
Implement const array/string dereference RFC:https://wiki.php.net/rfc/constdereference |
Revision tags: php-5.3.11RC2, php-5.4.1RC2 |
|
#
4cf90e06 |
| 30-Mar-2012 |
Nikita Popov |
Fix lexing of nested heredoc strings in token_get_all() This fixes bug #60097. Before two global variables CG(heredoc) and CG(heredoc_len) were used to track the current heredoc
Fix lexing of nested heredoc strings in token_get_all() This fixes bug #60097. Before two global variables CG(heredoc) and CG(heredoc_len) were used to track the current heredoc label. In order to support nested heredoc strings the *previous* heredoc label was assigned as the token value of T_START_HEREDOC and the language_parser.y assigned that to CG(heredoc). This created a dependency of the lexer on the parser. Thus the token_get_all() function, which accesses the lexer directly without also running the parser, was not able to tokenize nested heredoc strings (and leaked memory). Same applies for the source-code highlighting functions. The new approach is to maintain a heredoc_label_stack in the lexer, which contains all active heredoc labels. As it is no longer required, T_START_HEREDOC and T_END_HEREDOC now don't carry a token value anymore. In order to make the work with zend_ptr_stack in this context more convenient I added a new function zend_ptr_stack_top(), which retrieves the top element of the stack (similar to zend_stack_top()).
show more ...
|
Revision tags: php-5.3.11RC1, php-5.4.1RC1, PHP-5.4.1-RC1, php-5.4.0, php-5.4.0RC8, php-5.3.10, php-5.4.0RC7, php-5.4.0RC6 |
|
#
b515bfbd |
| 17-Jan-2012 |
Dmitry Stogov |
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 i
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.
show more ...
|
#
032d140f |
| 17-Jan-2012 |
Dmitry Stogov |
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 i
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.
show more ...
|
Revision tags: php-5.3.9, php-5.4.0RC5 |
|
#
e4ca0ed0 |
| 01-Jan-2012 |
Felipe Pena |
- Year++ |
#
8775a375 |
| 01-Jan-2012 |
Felipe Pena |
- Year++ |
#
4e198252 |
| 01-Jan-2012 |
Felipe Pena |
- Year++ |
Revision tags: php-5.3.9RC4, php-5.4.0RC4, php-5.3.9RC3, php-5.4.0RC3, php-5.3.9RC2, php-5.4.0RC2, php-5.4.0RC1 |
|
#
eebaaf42 |
| 06-Nov-2011 |
Felipe Pena |
- Added class member access on instantiation (e.g. (new foo)->bar()) support |
#
ff48763f |
| 06-Nov-2011 |
Felipe Pena |
- Added class member access on instantiation (e.g. (new foo)->bar()) support |
Revision tags: php-5.3.9RC1, php-5.4.0beta2, php-5.4.0beta1, yaf-2.1.0, php-5.3.8, php-5.3.7 |
|
#
8db63e88 |
| 16-Aug-2011 |
Felipe Pena |
- Drop T_SCALAR_CAST |
#
17abf879 |
| 16-Aug-2011 |
Felipe Pena |
- Drop T_SCALAR_CAST |
#
306c4202 |
| 16-Aug-2011 |
Hannes Magnusson |
Callable typehint following the rules of is_callable($arg, false); |
#
550980cf |
| 16-Aug-2011 |
Hannes Magnusson |
Callable typehint following the rules of is_callable($arg, false); |
Revision tags: php-5.3.7RC5, php-5.4.0alpha3 |
|
#
ad4d6d1c |
| 01-Aug-2011 |
Dmitry Stogov |
Added support for Class::{expr}() syntax (Pierrick) |
#
74f68932 |
| 01-Aug-2011 |
Dmitry Stogov |
Added support for Class::{expr}() syntax (Pierrick) |
#
0158804a |
| 31-Jul-2011 |
Stefan Marr |
Added __TRAIT__ magic constant [TRAITS] [DOC] # __TRAIT__ behaves like __CLASS__ more or less but is constraint to traits. # Since traits are not types, there are not many valid use cases, an
Added __TRAIT__ magic constant [TRAITS] [DOC] # __TRAIT__ behaves like __CLASS__ more or less but is constraint to traits. # Since traits are not types, there are not many valid use cases, and trying # to use __TRAIT__ to make traits more like classes is discouraged.
show more ...
|
#
dbc6849b |
| 31-Jul-2011 |
Stefan Marr |
Added __TRAIT__ magic constant [TRAITS] [DOC] # __TRAIT__ behaves like __CLASS__ more or less but is constraint to traits. # Since traits are not types, there are not many valid use cases, an
Added __TRAIT__ magic constant [TRAITS] [DOC] # __TRAIT__ behaves like __CLASS__ more or less but is constraint to traits. # Since traits are not types, there are not many valid use cases, and trying # to use __TRAIT__ to make traits more like classes is discouraged.
show more ...
|
Revision tags: php-5.3.7RC4 |
|
#
80496c9d |
| 23-Jul-2011 |
Pierre Joye |
- add short array syntax as defined in https://wiki.php.net/rfc/shortsyntaxforarrays, 2nd solution using => only |
#
cbe0ed86 |
| 23-Jul-2011 |
Pierre Joye |
- add short array syntax as defined in https://wiki.php.net/rfc/shortsyntaxforarrays, 2nd solution using => only |
Revision tags: php-5.3.7RC3, php-5.4.0alpha2 |
|
#
0fe6fd9e |
| 09-Jul-2011 |
Felipe Pena |
- Changed zend_resolve_class_name() prototype # No needed to pass fetch_type as pointer here |
#
70cacfd3 |
| 09-Jul-2011 |
Felipe Pena |
- Changed zend_resolve_class_name() prototype # No needed to pass fetch_type as pointer here |
#
0124c286 |
| 02-Jul-2011 |
Felipe Pena |
- Fixed bug #55086 (Namespace alias does not work inside trait's use block) patch by: Pierrick |
#
d8e8e68f |
| 02-Jul-2011 |
Felipe Pena |
- Fixed bug #55086 (Namespace alias does not work inside trait's use block) patch by: Pierrick |
Revision tags: php-5.3.7RC2 |
|
#
bcf7e60d |
| 24-Jun-2011 |
Felipe Pena |
- Fixed build on Windows |
#
e9ce400f |
| 24-Jun-2011 |
Felipe Pena |
- Fixed build on Windows |