Edit report at https://bugs.php.net/bug.php?id=60777&edit=1
ID: 60777 Comment by: laruence at gmail dot com Reported by: giguet at ens dot fr Summary: bug in parsing one line comment Status: Open Type: Bug Package: *General Issues Operating System: linux squeeze PHP Version: Irrelevant Block user comment: N Private report: N New Comment: bogus, The "one-line" comment styles only comment to the end of the line or the current block of PHP code, see http://www.php.net/manual/en/language.basic-syntax.comments.php Previous Comments: ------------------------------------------------------------------------ [2012-01-17 13:40:01] giguet at ens dot fr Description: ------------ When the two character-string ?> is present in a one-line // comment php interprets the rest of the line as php code. PHP 5.3.3-7+squeeze3 with Suhosin-Patch (cli) (built: Jun 28 2011 08:24:40) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH Test script: --------------- <?php // echo '?>'; ?> Actual result: -------------- '; ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60777&edit=1
