| Summary: | "Cannot redeclare const" warning ignores program flow. | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | jay <jay> |
| Component: | Language Support: PHP | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | niko.sams, pprkut |
| Priority: | NOR | ||
| Version First Reported In: | git master | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
The parser only parses the code, it doesn't execute. The only solution would be not to report an error. *** This bug has been marked as a duplicate of bug 267246 *** |
Version: git master (using KDE 4.6.2) OS: Linux parser is unable to see program flow in defining constants. Reproducible: Always Steps to Reproduce: <?php if( true ){ define('FOO', true); }else{ define('FOO', false); } ?> Actual Results: Cannot redeclare const bool FOO, already declared ..... Expected Results: no warning.