I'm having a strange behavior with a section (more precisely a conditional statement) of a PHP script.
When using a breakpoint on the exact line of the conditional with XDebug (phpStorm), the script executes as expected. Inversely, when executing normally or breaking anywhere else (before or inside brackets), the supposedly true condition is skipped.
if($interval > $maxCovering) //2 DateInterval objects - break here and it works
{
//Do something - never reached on standard execution
}
I tried to pause the execution right before the line and it doesn't help. Also, I did some research and came up empty regarding this problem with PHP.
What can cause this behavior and what are the remedies?
EDIT Those are the typical logs: 'max' and 'inter' are arguments and 'compar' is the comparison First 2 lines are execution with breakpoints and last 2 without