ID:               38787
 Updated by:       [EMAIL PROTECTED]
 Reported By:      rick at dualmedia dot it
-Status:           Open
+Status:           Feedback
 Bug Type:         Scripting Engine problem
 Operating System: Linux ubuntu
 PHP Version:      4.4.4
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Works perfectly fine with 4.4, 5.1 and 5.2 here.


Previous Comments:
------------------------------------------------------------------------

[2006-09-12 09:49:15] rick at dualmedia dot it

Description:
------------
With the example code the line number is wrong and the parse skip line
codes;

Reproduce code:
---------------
<?php
$a = 3;

switch ($a) {
        case 1:
                echo 1;
                $p = <<<EOF
text
text
EOF;
                break;

        case 2:
                echo 1;
                $p = <<<EOF
text
text
EOF;
                break;
                
        case 3:
                print __LINE__;
                break;

        default:
                break;
}
?>

Expected result:
----------------
22

Actual result:
--------------
24


------------------------------------------------------------------------


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

Reply via email to