|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-03-20 01:15 UTC] shmengie_2000 at yahoo dot com
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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 13:00:01 2025 UTC |
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"Taking a shot in the dark, hoping this bug comes to sombody who "knows" attention. Prior comments are somewhat misleading. I'm using OCI8, and also Manuel Lemos' Metabase. Parusing through the source, I've noticed that there are some constants defined for OCI8 (which are documented): eg: REGISTER_LONG_CONSTANT("OCI_DEFAULT",OCI_DEFAULT, CONST_CS | CONST_PERSISTENT); I question this CONST_PERSISTENT value. Is it possible that the persistence is helping non persistent constants (in the php code) strattle the void between pages? BTW: what does _zval_dtor in the source mean? Specifically, "dtor"