On Wed, 2013-04-10 at 15:57 +0400, Dmitry Stogov wrote:
> The attached patch demonstrates it and adds per script constants
> substitution explained in the following script
>
Will this case work properly:
a.php:
<?php
$flag = true;
include('c.php');
?>
b.php:
<?php
$flag = false;
include('c.php');
?>
c.php:
<?php
if ($flag) {
define('C', 1);
} else {
define('C', 2);
}
echo C;
?>
and then request #1 to a.php and request #2 to b.php?
johannes
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php