#31395 [Opn->Bgs]: incorrect parsing of comments

From: Date: Mon, 03 Jan 2005 22:53:13 +0000
Subject: #31395 [Opn->Bgs]: incorrect parsing of comments
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-71426@lists.php.net to get a copy of this message
ID: 31395 Updated by: tony2001@php.net Reported By: marco-glatz at web dot de -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: winxp PHP Version: 5.0.2 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php See here: http://www.php.net/manual/en/language.basic-syntax.comments.php Previous Comments: ------------------------------------------------------------------------ [2005-01-03 23:44:00] marco-glatz at web dot de Description: ------------ c-style comments are not correctly parsed if the end of the comment is inside a function-call Reproduce code: --------------- /* $fp = fopen('foo.txt', 'w'); fwrite($fp, " */\n"); // php assumes comment ends here fclose($fp); */ gives this: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in ... Parse error: syntax error, unexpected '"' in ... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31395&edit=1

« previous php.bugs (#71426) next »