Bug 267246 - No support for conditional constant definition
Summary: No support for conditional constant definition
Status: CONFIRMED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: PHP (show other bugs)
Version: 4.2.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 276663 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-27 12:27 UTC by Heinz Wiesinger
Modified: 2017-02-21 14:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***