[php-src] Issue #11704: Silent Script Parser Crash on If statement

From: Date: Fri, 14 Jul 2023 08:10:36 +0000
Subject: [php-src] Issue #11704: Silent Script Parser Crash on If statement
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244961@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11704 Author: Zmrzka ### Description The following code: ```php <?php error_reporting(E_ALL); ini_set("display_errors", 1); ini_set('display_startup_errors', 1); if (is_array($TABPARAM['discardcols'])**)** and in_array($value, $TABPARAM['discardcols'])) { ... ?> ``` Resulted in this output: ``` script silently crashes on parse due to superfluous bracket ``` But I expected this output instead: ``` ParseError with line ID ``` ### PHP Version 8.2.7 ### Operating System debian 12

« previous php.bugs (#244961) next »