constant already defined

Malek Hadj-Ali lekma@chello.nl
Thu, 8 Feb 2001 14:56:00 +0100


What can I do if I have the same constant defined twice in two different
include files?
i.e. : the errors below are cause of the fact that in imp/index.php3 both
../lib/horde.lib and ./lib/imp.lib are include and they define both
constants no_action, send_message and mailto.

which one should be used or is it a bug in PHP that can't handle a new
DEFINE for the same constant?

thx for any help

malek


-----Message d'origine-----
De : Malek Hadj-Ali <lekma@chello.nl>
À : imp@lists.horde.org <imp@lists.horde.org>
Date : mercredi 7 février 2001 22:52
Objet : Re: [imp] newbie questions


>
>OS : NT 4.0
>Horde : 1.2.4
>IMP : 2.2.4
>Web srv : IIS 4.0
>Db : MySql 3.23.32
>PHP 4.0.4pl1
>pop3 srv : Post.Office
>
>the installation of various components seems to be good (I have a very nice
>test page full of green, the db works, php also...).
>
>but when i try to connect to the imp/index.php3 i get the errors...
>
>thx for any help
>
>malek
>
>
>-----Message d'origine-----
>De : Brent J. Nordquist <bjn@horde.org>
>À : imp@lists.horde.org <imp@lists.horde.org>
>Date : mercredi 7 février 2001 22:40
>Objet : Re: [imp] newbie questions
>
>
>>On Wed, 7 Feb 2001, Malek Hadj-Ali <lekma@chello.nl> wrote:
>>
>>> newbie to imp i'm meeting these days those errors below.
>>> it seems that i'm not the first one... but even by browsing and
searching
>the archieved mailing list i didn't find out yet.
>>>
>>> i hope someone will waste a bit time to help me...
>>
>>We will need a lot more information, starting with what platform you're
>>using, Horde/IMP versions, versions of the supporting software (Apache,
>>PHP, IMAP, etc.).
>>
>>> Warning: Constant no_action already defined in ./lib/imp.lib on line 23
>>> Warning: Constant send_message already defined in ./lib/imp.lib on line
>42
>>> Warning: Constant mailto already defined in ./lib/imp.lib on line 52
>>
>>This is the actual problem; these are just a consequence:
>>
>>> Warning: Cannot add header information - headers already sent by (output
>started at ./lib/imp.lib:23) in session.inc on line 407
>>> Warning: Cannot add header information - headers already sent by (output
>started at ./lib/imp.lib:23) in session.inc on line 120
>>> Warning: Cannot add header information - headers already sent by (output
>started at ./lib/imp.lib:23) in session.inc on line 416
>>
>>--
>>Brent J. Nordquist <bjn@horde.org>
>>Yahoo!: Brent_Nordquist / AIM: BrentJNordquist / ICQ: 76158942
>>
>>
>>--
>>IMP mailing list: http://horde.org/imp/
>>Frequently Asked Questions: http://horde.org/faq/
>>To unsubscribe, mail: imp-unsubscribe@lists.horde.org
>>
>



>From ccrowley@tulane.edu Date:     2000-02-22 19:19:19
Return-Path: <ccrowley@tulane.edu>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 33336 invoked from network); 8 Feb 2001 15:07:25 -0000
Received: from majestic.tcs.tulane.edu (HELO tulane.edu) (129.81.224.6)
  by horde.org with SMTP; 8 Feb 2001 15:07:25 -0000
Received: from operationsnt (syshelp.tcs.tulane.edu [129.81.118.186])
	by tulane.edu (8.10.1/8.10.1) with SMTP id f18F7NH13606
	for <imp@lists.horde.org>; Thu, 8 Feb 2001 09:07:23 -0600 (CST)
Message-ID: <007601c091e0$c3a62000$ba765181@tcs.tulane.edu>
From: "Chris Crowley" <ccrowley@tulane.edu>
To: <imp@lists.horde.org>
References: <003101c091d6$de2bb890$0a64a8c0@protos.lcde.test>
Date: Thu, 8 Feb 2001 09:06:50 -0600
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Subject: Japanese language support.

<FROM ARCHIVES>
Date:     2000-02-22 19:19:19
[Download message RAW]

Quoting Shunji Toyama <shunji@toyama.kamakura.kanagawa.jp>:

>  Is anybody working for supporting Japanese, or any other
>  language using multibyte character set?

There's been some discussion about it, but more minds working on it and
figuring
out what needs to change in IMP to support it would always be good.

-chuck
</FROM ARCHIVES>

Has this been worked on?

Thanks.
Chris