Bug #80539 [Opn->Nab]: The '#' comment not recognized

From: Date: Tue, 22 Dec 2020 03:40:15 +0000
Subject: Bug #80539 [Opn->Nab]: The '#' comment not recognized
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231214@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80539&edit=1 ID: 80539 Updated by: levim@php.net Reported by: funderburkjim at gmail dot com Summary: The '#' comment not recognized -Status: Open +Status: Not a bug Type: Bug Package: Scripting Engine problem Operating System: Windows 10 PHP Version: 8.0.0 Block user comment: N Private report: N New Comment: This is because #[] is the syntax for attributes in PHP 8.0. Yes, this is a change in behavior from previous versions; easiest thing to do is to change it to //[0]. Previous Comments: ------------------------------------------------------------------------ [2020-12-22 03:05:35] funderburkjim at gmail dot com Description: ------------ Running test script (tempbug.php) gives PHP parse error: PHP Parse error: syntax error, unexpected integer "0" in C:\xampp\htdocs\tempbug.php on line 2 This parses and runs without error in php 7.1.9. Test script: --------------- <?php echo "some message\n"; #[0] ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80539&edit=1

« previous php.bugs (#231214) next »