mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
641f9615cc
If token_get_all() is used, we still need to correctly distinguish LNUMBER vs DNUMBER here for backwards compatibility.
15 lines
404 B
PHP
15 lines
404 B
PHP
--TEST--
|
|
Bug #71086: Invalid numeric literal parse error within highlight_string() function
|
|
--FILE--
|
|
<?php
|
|
|
|
$highlightedString = highlight_string("<?php \n 09 09 09;", true);
|
|
var_dump($highlightedString);
|
|
|
|
?>
|
|
--EXPECT--
|
|
string(169) "<code><span style="color: #000000">
|
|
<span style="color: #0000BB"><?php <br /> 09 09 09</span><span style="color: #007700">;</span>
|
|
</span>
|
|
</code>"
|