different bug - define constants/includes (was Re: [PHP-WIN] class and dynamic includes (IIS))
| From: | Joe Brown | Date: | Tue, 20 Mar 2001 15:37:29 +0000 |
| Subject: | different bug - define constants/includes (was Re: [PHP-WIN] class and dynamic includes (IIS)) | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6169@lists.php.net to get a copy of this message | ||
I did some tracing on this bug I was experiencing.
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.
""Joe Brown"" <joebrown@somewhere.com> wrote in message
news:99661p$9oc$1@toye.p.sourceforge.net...
> This appears to be an IIS specific issue.
>
> Using IIS and Manuel Lemos' Metabase, I'm getting errors in
> metabase_interface.php.
>
> Fatal error: Cannot instantiate non-existent class: metabase_oci_class in
> metabase/metabase_interface.php on line 99
>
> It's quite inconsistent. After recieving this error, the next refresh,
the
> error does not appear.
>
> I'm suspecting the root of the problem is class instantiation, within a
> class where the subordinate class is instantiated immediately after an
> include($class_file) within the parent class. Heh, if you can follow
that,
> please advise...
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>