Browse Source

Fixed bug #34782 (token_get_all() gives wrong result)

PHP-5.1
Dmitry Stogov 21 years ago
parent
commit
7c3bdf444d
  1. 1
      NEWS
  2. 1
      Zend/zend_language_scanner.l
  3. 2
      ext/tokenizer/tokenizer.c

1
NEWS

@ -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)

1
Zend/zend_language_scanner.l

@ -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)) {

2
ext/tokenizer/tokenizer.c

@ -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);

Loading…
Cancel
Save