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.
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 ***