|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2015-12-10 21:13 UTC] nikic@php.net
 
-Assigned To:
+Assigned To: nikic
  [2015-12-11 15:06 UTC] nikic@php.net
  [2015-12-11 15:06 UTC] nikic@php.net
 
-Status: Assigned
+Status: Closed
  [2016-07-20 11:34 UTC] davey@php.net
  [2019-12-12 15:57 UTC] nospam at mckenzies dot net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 03:00:01 2025 UTC | 
Description: ------------ I have reproduced this issue with PHP 7.0 stable and have since updated to: PHP 7.0.2-dev (cli) (built: Dec 9 2015 20:09:53) ( NTS ) If you test the script below, you will see a parse error, "Invalid numeric literal". Although, technically, the code used within highlight_string function below is indeed invalid, I don't believe this should actually manifest itself as a parse error. After all, you can throw pretty much anything in there, valid or invalid, and not otherwise get any problems, so a parse error here for this specific case seems unexpected. Test script: --------------- <?php $highlightedString = highlight_string("<?php \n 09;", true); var_dump($highlightedString); ?> Expected result: ---------------- The parse error should be suppressed. Actual result: -------------- ParseError: Invalid numeric literal