Bug 267246

Summary: No support for conditional constant definition
Product: [Applications] kdevelop Reporter: Heinz Wiesinger <pprkut>
Component: Language Support: PHPAssignee: kdevelop-bugs-null
Status: CONFIRMED ---    
Severity: normal CC: jay
Priority: NOR    
Version First Reported In: 4.2.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Heinz Wiesinger 2011-02-27 12:27:58 UTC
Version:           4.2.0 (using KDE 4.5.5) 
OS:                Linux

When confronted with code like this:

if ($test) {
  define("A", 1);
} else {
  define("A", 2);
}

the parser shows an error on the second define, complaining about it being already defined.

Reproducible: Always
Comment 1 Kevin Funk 2016-03-24 13:35:21 UTC
@Heinz: Still valid?
Comment 2 Kevin Funk 2016-09-08 20:02:58 UTC
Confirmed under KDevelop 5.
Comment 3 Heinz Wiesinger 2017-02-21 14:03:37 UTC
*** Bug 276663 has been marked as a duplicate of this bug. ***