Bug #53298 [Opn->Bgs]: // $msg_text = '?>...';
| From: | felipe@php.net | Date: | Fri, 12 Nov 2010 20:43:23 +0000 |
| Subject: | Bug #53298 [Opn->Bgs]: // $msg_text = '?>...'; | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-155979@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53298&edit=1
ID: 53298
Updated by: felipe@php.net
Reported by: jost dot boekemeier at googlemail dot com
Summary: // $msg_text = '?>...';
-Status: Open
+Status: Bogus
Type: Bug
Package: *General Issues
Operating System: any
PHP Version: 5.2.14
Block user comment: N
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
Previous Comments:
------------------------------------------------------------------------
[2010-11-12 20:39:36] bastard dot internets at gmail dot com
"?>" is meant to break out of PHP when encountered in a single-line
comment (see
http://www.php.net/manual/en/language.basic-syntax.comments.php).
------------------------------------------------------------------------
[2010-11-12 12:19:20] jost dot boekemeier at googlemail dot com
corrected mail address
------------------------------------------------------------------------
[2010-11-12 12:08:24] jost dot boekemeier at googlemail dot com
Description:
------------
PHP Parser doesn't handle comments as such
<?php
echo 1+2;
// $msg_text =
'?>RCP_11/11/10_12:31:52_070%_E009.56.35,7_N53.32.39,6_003KM/H_278DEG_0M_2_4_0_1,6_00_0';
echo 1+2;
should print 33, and not print the script unevaluated.
Test script:
---------------
<?php
echo 1+2;
// $msg_text =
'?>RCP_11/11/10_12:31:52_070%_E009.56.35,7_N53.32.39,6_003KM/H_278DEG_0M_2_4_0_1,6_00_0';
echo 1+2;
Expected result:
----------------
33
Actual result:
--------------
3RCP_11/11/10_12:31:52_070%_E009.56.35,7_N53.32.39,6_003KM/H_278DEG_0M_2_4_0_1,6_00_0';
echo 1+2;
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53298&edit=1