Line no. and heredoc [message #9230] |
Tue, 27 March 2007 01:03 |
Eclipse User |
|
|
|
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 #12108 is a reply to message #10362] |
Thu, 05 April 2007 22:04 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.04682 seconds