Edit report at http://bugs.php.net/bug.php?id=53298&edit=1

 ID:                 53298
 User updated by:    jost dot boekemeier at googlemail dot com
 Reported by:        jost dot boekemeier at googlemail dot com
 Summary:            // $msg_text = '?>...';
 Status:             Open
 Type:               Bug
 Package:            *General Issues
 Operating System:   any
 PHP Version:        5.2.14
 Block user comment: N

 New Comment:

corrected mail address


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to