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 |
|
#
520d07d8 |
| 04-Mar-2012 |
Stefan Marr |
Fixed Bug #61052 (Missing error check in trait 'insteadof' clause)
|
#
ffded002 |
| 04-Mar-2012 |
Stefan Marr |
Fixed Bug #61052 (Missing error check in trait 'insteadof' clause)
|
#
34fe6261 |
| 04-Mar-2012 |
Stefan Marr |
Fixed Bug #60911 (Confusing error message when extending traits)
|
#
0ed3b004 |
| 04-Mar-2012 |
Stefan Marr |
Fixed Bug #60911 (Confusing error message when extending traits)
|
#
60dfd64b |
| 04-Mar-2012 |
Stefan Marr |
Fixed Bug #60717 (Order of traits in use statement can cause a fatal error) # Compatibility is now correctly checked in both directions. # Introduced helper method for the test.
|
#
0bb85e4b |
| 04-Mar-2012 |
Stefan Marr |
Fixed Bug #60717 (Order of traits in use statement can cause a fatal error) # Compatibility is now correctly checked in both directions. # Introduced helper method for the test.
|
#
046e3e38 |
| 02-Mar-2012 |
Xinchen Hui |
MFH: Fixed bug #60573 (type hinting with "self" keyword causes weird errors)
|
Revision tags: php-5.4.0, php-5.4.0RC8, php-5.3.10, php-5.4.0RC7 |
|
#
3299a267 |
| 20-Jan-2012 |
Dmitry Stogov |
Fixed Bug #60809 (TRAITS - PHPDoc Comment Style Bug) Fixed some other traits related bugs (uninitialized variable, return => continue) Removed some trait related redundant code and variables
|
#
f9e6af5e |
| 20-Jan-2012 |
Dmitry Stogov |
Fixed Bug #60809 (TRAITS - PHPDoc Comment Style Bug) Fixed some other traits related bugs (uninitialized variable, return => continue) Removed some trait related redundant code and variables
|
Revision tags: 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 ...
|
#
d74a258f |
| 16-Jan-2012 |
Xinchen Hui |
Fixed Bug #60573 (type hinting with "self" keyword causes weird errors)
|
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++
|
#
a68e858d |
| 28-Dec-2011 |
Dmitry Stogov |
Fixed bug #60613 (Segmentation fault with $cls->{expr}() syntax)
|
#
c0583851 |
| 28-Dec-2011 |
Dmitry Stogov |
Fixed bug #60613 (Segmentation fault with $cls->{expr}() syntax)
|
#
84ce7904 |
| 28-Dec-2011 |
Xinchen Hui |
Fix #60613 (Segmentation fault with $cls->{expr}() syntax) #now the behavior is like 5.3, a COMPILER_ERROR will be triggered
|
#
113c0a8c |
| 28-Dec-2011 |
Xinchen Hui |
Fix #60613 (Segmentation fault with $cls->{expr}() syntax) #now the behavior is like 5.3, a COMPILER_ERROR will be triggered
|
#
20e2db2c |
| 27-Dec-2011 |
Xinchen Hui |
Fix bug #60611 (Segmentation fault with Cls::{expr}() syntax)
|
#
2f4875bf |
| 27-Dec-2011 |
Xinchen Hui |
Fix bug #60611 (Segmentation fault with Cls::{expr}() syntax)
|
Revision tags: php-5.3.9RC4, php-5.4.0RC4 |
|
#
c1d5a5d7 |
| 19-Dec-2011 |
Xinchen Hui |
Fixed bug #60558 (Invalid read and writes) Re-Fixed bug #60536 (Traits Segfault) #Thanks to tony2001, I found the previous fix -r321089 is actually not a correct one. #The key problem the
Fixed bug #60558 (Invalid read and writes) Re-Fixed bug #60536 (Traits Segfault) #Thanks to tony2001, I found the previous fix -r321089 is actually not a correct one. #The key problem there is because the traits didn't correct set the property_info.offset #for private properties. so here come the new fix.
show more ...
|
#
2f62602c |
| 19-Dec-2011 |
Xinchen Hui |
Fixed bug #60558 (Invalid read and writes) Re-Fixed bug #60536 (Traits Segfault) #Thanks to tony2001, I found the previous fix -r321089 is actually not a correct one. #The key problem the
Fixed bug #60558 (Invalid read and writes) Re-Fixed bug #60536 (Traits Segfault) #Thanks to tony2001, I found the previous fix -r321089 is actually not a correct one. #The key problem there is because the traits didn't correct set the property_info.offset #for private properties. so here come the new fix.
show more ...
|
#
f3900513 |
| 19-Dec-2011 |
Xinchen Hui |
Codes standard & Remove useless empty lines
|