Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Line no. and heredoc
Line no. and heredoc [message #9230] Tue, 27 March 2007 01:03 Go to next message
Eclipse UserFriend
Originally posted by: apaz.yahoo.com

Hi,

Has anyone seen a bug that when the php includes heredoc, the debugger
reports in the stacktrace an extra line no. for each heredoc, so for
example, if this is the php:

1. <?php
2. function test() {
3. $foo = "xxx";
4. $hd = <<<TEST
5. some value
6. TEST;
7. $bar = "yyy";
8. }
9. ?>


when it gets to execute $bar = "yyy", xdebug reports lineno as 8, so it
all gets messed-up.

Thanks!

-a.
Re: Line no. and heredoc [message #10362 is a reply to message #9230] Tue, 27 March 2007 16:15 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
I just tried your example and it works for me, I am using XDebug 2.0.0rc3
so check that this is the version you are using.

Cheers
Dave



Andres Paz wrote:
> Hi,
>
> Has anyone seen a bug that when the php includes heredoc, the debugger
> reports in the stacktrace an extra line no. for each heredoc, so for
> example, if this is the php:
>
> 1. <?php
> 2. function test() {
> 3. $foo = "xxx";
> 4. $hd = <<<TEST
> 5. some value
> 6. TEST;
> 7. $bar = "yyy";
> 8. }
> 9. ?>
>
>
> when it gets to execute $bar = "yyy", xdebug reports lineno as 8, so it
> all gets messed-up.
>
> Thanks!
>
> -a.
Re: Line no. and heredoc [message #12108 is a reply to message #10362] Thu, 05 April 2007 22:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: apaz.yahoo.com

It turns out to be a php bug:
http://bugs.php.net/bug.php?id=36037

-a.

Dave Kelsey wrote:
> I just tried your example and it works for me, I am using XDebug 2.0.0rc3
> so check that this is the version you are using.
>
> Cheers
> Dave
>
>
>
> Andres Paz wrote:
>> Hi,
>>
>> Has anyone seen a bug that when the php includes heredoc, the debugger
>> reports in the stacktrace an extra line no. for each heredoc, so for
>> example, if this is the php:
>>
>> 1. <?php
>> 2. function test() {
>> 3. $foo = "xxx";
>> 4. $hd = <<<TEST
>> 5. some value
>> 6. TEST;
>> 7. $bar = "yyy";
>> 8. }
>> 9. ?>
>>
>>
>> when it gets to execute $bar = "yyy", xdebug reports lineno as 8, so
>> it all gets messed-up.
>>
>> Thanks!
>>
>> -a.
Re: Line no. and heredoc [message #12121 is a reply to message #12108] Thu, 05 April 2007 22:16 Go to previous message
Eclipse UserFriend
Originally posted by: dkel50.hotnospmail.com

ahh right explains why it worked for me as I am using 5.2.1. Thanks for
letting me know.

Dave Kelsey

Andres Paz wrote:
> It turns out to be a php bug:
> http://bugs.php.net/bug.php?id=36037
>
> -a.
>
> Dave Kelsey wrote:
>> I just tried your example and it works for me, I am using XDebug 2.0.0rc3
>> so check that this is the version you are using.
>>
>> Cheers
>> Dave
>>
>>
>>
>> Andres Paz wrote:
>>> Hi,
>>>
>>> Has anyone seen a bug that when the php includes heredoc, the
>>> debugger reports in the stacktrace an extra line no. for each
>>> heredoc, so for example, if this is the php:
>>>
>>> 1. <?php
>>> 2. function test() {
>>> 3. $foo = "xxx";
>>> 4. $hd = <<<TEST
>>> 5. some value
>>> 6. TEST;
>>> 7. $bar = "yyy";
>>> 8. }
>>> 9. ?>
>>>
>>>
>>> when it gets to execute $bar = "yyy", xdebug reports lineno as 8, so
>>> it all gets messed-up.
>>>
>>> Thanks!
>>>
>>> -a.
Previous Topic:[FAQ] How do I install a nightly release?
Next Topic:0.7 Release
Goto Forum:
  


Current Time: Mon Dec 30 17:40:02 GMT 2024

Powered by FUDForum. Page generated in 0.04682 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top