|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-03 23:53 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 08:00:02 2025 UTC |
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 ...