1--TEST-- 2Parse errors during token_get_all() with TOKEN_PARSE flag 3--SKIPIF-- 4<?php if (!extension_loaded("tokenizer")) print "skip"; ?> 5--FILE-- 6<?php 7 8try { 9 token_get_all('<?php invalid code;', TOKEN_PARSE); 10} catch (ParseError $e) { 11 echo $e->getMessage(), PHP_EOL; 12} 13 14echo "Done"; 15 16?> 17--EXPECT-- 18syntax error, unexpected 'code' (T_STRING) 19Done 20