[Bug 1514845] [NEW] Error in using already defined constants (PHP)
Launchpad Bug Tracker
1514845 at bugs.launchpad.net
Wed Nov 11 08:07:35 UTC 2015
You have been subscribed to a public bug:
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: php5 (Ubuntu)
Importance: Undecided
Status: New
** Tags: bot-comment
--
Error in using already defined constants (PHP)
https://bugs.launchpad.net/bugs/1514845
You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu.
More information about the Ubuntu-server-bugs
mailing list