View Issue Details

IDProjectCategoryView StatusLast Update
0000427Xdebugpublic2009-03-03 09:35
Reporternforward Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionnot fixable 
Product Version2.0.0dev 
Summary0000427: Breakpoint ignored on certain if() statements
Description

A breakpoint on certain if() statements is ignored. It only seems to happen when there is a variable on its own and the open brace is on the line below.

Examples:

if ($foo) // Breakpoint here ignored
{
echo "bar";
}

if ($foo == "bar") // Breakpoint here NOT ignored
{
echo "bar";
}

if ($foo) { // Breakpoint here NOT ignored
echo "bar";
}

Additional Information

PHP 5.2.6 / Windows Vista / Apache:
Apache/2.2.8 (Win32) mod_ssl/2.2.8 OpenSSL/0.9.8g PHP/5.2.6

Xdebug 2.0.4

Eclipse 3.4.1 Build M20080911-1700 (PDT all-in-one)
PDT 2.0.0.v20081229-1135

All running on localhost (WAMP stack)

TagsNo tags attached.
Operating SystemWindows Vista 64 bit
PHP Version5.2.6

Activities

derick

2009-03-03 09:35

administrator   ~0000920

Unfortunately I can do very little about this. PHP simply has the line numbers wrong internally:

line # op fetch ext return operands

3 0 EXT_STMT
1 JMPZ !0, ->5
4 2 EXT_STMT
3 ECHO 'bar%0A'
5 4 JMP ->5
7 5 EXT_STMT
6 RETURN 1
7* ZEND_HANDLE_EXCEPTION

for

1 <?php
2 if ($foo)
3 {
4 echo "bar\n";
5 }
6 ?>