Discussion:
[horde] LATT_REFERRAL in PHP 4.3.6
Daniel Eckl
2004-04-28 07:23:49 UTC
Permalink
Because LATT_REFERRAL is predefined in PHP 4.3.6, but not before, horde
has this if clause:

if (!defined('LATT_HASCHILDREN')) {
define('LATT_REFERRAL', 16);
define('LATT_HASCHILDREN', 32);
define('LATT_HASNOCHILDREN', 64);
}

But the problem is, that in fact PHP 4.3.6 has LATT_REFERRAL defined,
but not LATT_HASCHILDREN. So with this clause,
!defined('LATT_HASCHILDREN') returns true, then it redefines
LATT_REFERRAL and because this is predefined, I get a warning.

Perhaps there has to be an own clause for LATT_REFERRAL?

Greets,
Daniel
Chuck Hagenbuch
2004-04-28 15:42:09 UTC
Permalink
Post by Daniel Eckl
But the problem is, that in fact PHP 4.3.6 has LATT_REFERRAL defined,
but not LATT_HASCHILDREN. So with this clause,
!defined('LATT_HASCHILDREN') returns true, then it redefines
LATT_REFERRAL and because this is predefined, I get a warning.
Try what I just committed. In the future, it'd be nice of you to include the
actual warning or at least the relevant file.

-chuck

--
"Regard my poor demoralized mule!" - Juan Valdez
Daniel Eckl
2004-04-29 14:31:38 UTC
Permalink
Yes, problem's gone. Thank you.

Interesting fix, just suppressing the warning :)

Please apologize for the missing info. I usually know what info is
needed and I know that I have to include it, but I just forgot this
time...

Greets,
Daniel
Post by Chuck Hagenbuch
Post by Daniel Eckl
But the problem is, that in fact PHP 4.3.6 has LATT_REFERRAL defined,
but not LATT_HASCHILDREN. So with this clause,
!defined('LATT_HASCHILDREN') returns true, then it redefines
LATT_REFERRAL and because this is predefined, I get a warning.
Try what I just committed. In the future, it'd be nice of you to include the
actual warning or at least the relevant file.
-chuck
--
"Regard my poor demoralized mule!" - Juan Valdez
--
Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
Frequently Asked Questions: http://horde.org/faq/
Daniel Eckl
2005-02-04 16:15:59 UTC
Permalink
Yes, problem's gone. Thank you.

Interesting fix, just suppressing the warning :)

Please apologize for the missing info. I usually know what info is
needed and I know that I have to include it, but I just forgot this
time...

Greets,
Daniel
Post by Chuck Hagenbuch
Post by Daniel Eckl
But the problem is, that in fact PHP 4.3.6 has LATT_REFERRAL defined,
but not LATT_HASCHILDREN. So with this clause,
!defined('LATT_HASCHILDREN') returns true, then it redefines
LATT_REFERRAL and because this is predefined, I get a warning.
Try what I just committed. In the future, it'd be nice of you to include the
actual warning or at least the relevant file.
-chuck
--
"Regard my poor demoralized mule!" - Juan Valdez
--
Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
Frequently Asked Questions: http://horde.org/faq/
Chuck Hagenbuch
2005-02-04 16:15:58 UTC
Permalink
Post by Daniel Eckl
But the problem is, that in fact PHP 4.3.6 has LATT_REFERRAL defined,
but not LATT_HASCHILDREN. So with this clause,
!defined('LATT_HASCHILDREN') returns true, then it redefines
LATT_REFERRAL and because this is predefined, I get a warning.
Try what I just committed. In the future, it'd be nice of you to include the
actual warning or at least the relevant file.

-chuck

--
"Regard my poor demoralized mule!" - Juan Valdez
Loading...