mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Fix bug #16939.
This commit is contained in:
parent
8a53a89a94
commit
f08e0ef9d4
@ -480,7 +480,7 @@ PHP_FUNCTION(token_get_all)
|
||||
if (zend_parse_parameters(argc TSRMLS_CC, "s", &source, &source_len) == FAILURE)
|
||||
return;
|
||||
|
||||
ZVAL_STRINGL(&source_z, source, source_len, 0);
|
||||
ZVAL_STRINGL(&source_z, source, source_len, 1);
|
||||
zend_save_lexical_state(&original_lex_state TSRMLS_CC);
|
||||
|
||||
if (zend_prepare_string_for_scanning(&source_z, "" TSRMLS_CC) == FAILURE) {
|
||||
@ -490,6 +490,7 @@ PHP_FUNCTION(token_get_all)
|
||||
tokenize(return_value TSRMLS_CC);
|
||||
|
||||
zend_restore_lexical_state(&original_lex_state TSRMLS_CC);
|
||||
zval_dtor(&source_z);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user