Public bug reported: Hello,
I have following problem. I am running Ubuntu 15.04, with PHP 5.6.14 by running the following code snippit in terminal I am receiving the concrete results, but if I am running the code from browser the constant first defined in bar.php seems to be temporary overwritten (for the concatenation). So the result of echo BAR_WITH_CONCAT is barBarwith_concat and not foowith_concat. kindly regards Kai //foo.php <?php error_reporting(); phpinfo(); //error_reporting(E_ALL); include ('bar.php'); include ('bar_2.php'); echo BAR; echo BAR_WITH_CONCAT; //bar.php define('BAR','foo'); //bar_2.php define('BAR','barBar'); define('BAR_WITH_CONCAT', BAR.'with_concat'); ** Affects: ubuntu Importance: Undecided Status: New ** Attachment added: "foo.php" https://bugs.launchpad.net/bugs/1514845/+attachment/4516179/+files/foo.php -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1514845 Title: Error in using already defined constants (PHP) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+bug/1514845/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs