Bug #76437 [Opn->Ver]: token_get_all with TOKEN_PARSE flag fails to recognise close tag

From: Date: Sat, 09 Jun 2018 13:38:28 +0000
Subject: Bug #76437 [Opn->Ver]: token_get_all with TOKEN_PARSE flag fails to recognise close tag
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215560@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76437&edit=1 ID: 76437 Updated by: cmb@php.net Reported by: nathanielzimmermann at gmail dot com Summary: token_get_all with TOKEN_PARSE flag fails to recognise close tag -Status: Open +Status: Verified Type: Bug Package: Scripting Engine problem PHP Version: 7.3.0alpha1 -Assigned To: +Assigned To: dmitry Block user comment: N Private report: N New Comment: It seems that this behavioral change is an unintended side effect of commit 8afb91c[1]. Dmitry, could you have a look at this issue, please? [1] <http://git.php.net/?p=php-src.git;a=commit;h=8afb91cdadaa5a40ee972dec278d89c76bf454e3> Previous Comments: ------------------------------------------------------------------------ [2018-06-09 11:26:16] nathanielzimmermann at gmail dot com Description: ------------ token_get_all with the TOKEN_PARSE flag fails to recognise the T_CLOSE_TAG token Test script: --------------- <?php var_dump(token_get_all('<?php echo 1; ?>', TOKEN_PARSE)[6]); Expected result: ---------------- array(3) { [0]=> int(381) [1]=> string(2) "?>" [2]=> int(1) } Actual result: -------------- string(2) "?>" ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76437&edit=1

« previous php.bugs (#215560) next »