mirror of
https://github.com/php/php-src.git
synced 2026-04-25 00:48:25 +02:00
Fixed bug #34782 (token_get_all() gives wrong result)
This commit is contained in:
@@ -6,6 +6,7 @@ PHP NEWS
|
||||
- Fixed bug #34893 (PHP5.1 overloading, Cannot access private property).
|
||||
(Dmitry)
|
||||
- Fixed bug #34899 (Fixed sqlite extension compile failure). (Ilia)
|
||||
- Fixed bug #34782 (token_get_all() gives wrong result). (Dmitry)
|
||||
- Fixed bug #34767 (Zend Engine 1 Compatibility not copying objects correctly).
|
||||
(Dmitry)
|
||||
- Fixed bug #34712 (zend.ze1_compatibility_mode = on segfault). (Dmitry)
|
||||
|
||||
@@ -615,6 +615,7 @@ int highlight_string(zval *str, zend_syntax_highlighter_ini *syntax_highlighter_
|
||||
if (zend_prepare_string_for_scanning(str, str_name TSRMLS_CC)==FAILURE) {
|
||||
return FAILURE;
|
||||
}
|
||||
BEGIN(INITIAL);
|
||||
zend_highlight(syntax_highlighter_ini TSRMLS_CC);
|
||||
#ifdef ZEND_MULTIBYTE
|
||||
if (SCNG(script_org)) {
|
||||
|
||||
@@ -519,6 +519,8 @@ PHP_FUNCTION(token_get_all)
|
||||
RETURN_EMPTY_STRING();
|
||||
}
|
||||
|
||||
LANG_SCNG(start) = 1;
|
||||
|
||||
tokenize(return_value TSRMLS_CC);
|
||||
|
||||
zend_restore_lexical_state(&original_lex_state TSRMLS_CC);
|
||||
|
||||
Reference in New Issue
Block a user