View Issue Details

IDProjectCategoryView StatusLast Update
0000949XdebugUncategorizedpublic2013-06-22 13:11
ReporterSiMoSiMo Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionnot fixable 
PlatformLinuxOSDebianOS Version5.0
Product Version2.2.1 
Summary0000949: Breakpoint on the boolean if statement
Description

I've noticed that if I put a breakpoint on a boolean if built in one of the following ways:

if (1)

if (TRUE)

$test = TRUE;
if ($test)

$test = 'foo';
if ($test)

xdebug fails to detect it.

Is it normal? Am I doing something wrong?

Steps To Reproduce

Put breakpoint at one of this if:
if (1)

if (TRUE)

$test = TRUE;
if ($test)

$test = 'foo';
if ($test)

Additional Information

http://php.net/manual/en/types.comparisons.php

TagsNo tags attached.
Operating System
PHP Version5.3.10

Activities

derick

2013-06-22 13:11

administrator   ~0002508

There is not a lot I can do about this. PHP doesn't generate "in between" statements for this sort of code and hence Xdebug can't latch on to that to make a breakpoint. It will work fine if you use { } for the if and else clauses.