#38787 [Opn->Fbk]: Wrong line number in switch statement

From: Date: Tue, 12 Sep 2006 10:08:40 +0000
Subject: #38787 [Opn->Fbk]: Wrong line number in switch statement
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-102029@lists.php.net to get a copy of this message
ID: 38787 Updated by: tony2001@php.net 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

« previous php.bugs (#102029) next »