From:             jaba at inbox dot lv
Operating system: any?
PHP version:      5.0.0b3 (beta3)
PHP Bug Type:     Scripting Engine problem
Bug description:  Comments dont work if you have ?> in them

Description:
------------
Comment line starters # and // dont work properly. I thought everything
that follows these signs is considered a comment. Now in PHP5 (have no
place to test on PHP4 now) i find out that if i have the PHP tag ?> in the
commented line, the parser ends parsing PHP right there! So if you have
smth like this in your code, then the rest of php code is sent as output
!!!

Reproduce code:
---------------
<?php
echo 'hello world!';
// echo '?>';
$password='secretpassword';
?>

Expected result:
----------------
hello world!

Actual result:
--------------
hello world!';
$password='secretpassword';
?>

-- 
Edit bug report at http://bugs.php.net/?id=27086&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27086&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27086&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27086&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27086&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27086&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27086&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27086&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27086&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27086&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27086&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27086&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27086&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27086&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27086&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27086&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27086&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27086&r=float

Reply via email to