ID: 9857
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: IIS related
Description: define("named_constant")

A define on php4isapi has a tendency to bleed over to the next page load.  refresh and 
a completely different page have retain a defined constant.

eg:
test1.php
<?
define("anything",1);
echo (defined("anything")?"anything defined":"anything not defined");
?>

test2.php
echo (defined("anything")?"anything defined":"anything not defined");

after pointing browser at test1.php
test 2.php contains "anything defined", instead of "not"

Previous Comments:
---------------------------------------------------------------------------

[2001-03-20 01:15:49] [EMAIL PROTECTED]
With this code at the top of an include file, the results are unpretictable.

if(!defined("METABASE_MYSQL_INCLUDED"))
{
 define("METABASE_MYSQL_INCLUDED",1);
 ...rest of include file...
}

require_once(); seems to work though.


---------------------------------------------------------------------------


Full Bug description available at: http://bugs.php.net/?id=9857


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to