Re: Re: Date: undefined offset

From: Date: Tue, 16 May 2006 10:53:16 +0000
Subject: Re: Re: Date: undefined offset
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24086@lists.php.net to get a copy of this message
No, AM_DEBUG is my own defined constant from another script. it is solved as you read the previous post. But thanx again for helping. - Charlie On 16 May 2006, at 12:43, Pierre wrote:
On 5/15/06, Charlie van de Kerkhof <pear@mowd.nl> wrote:
On 15 May 2006, at 13:46, Pierre wrote:
On Mon, 15 May 2006 13:43:11 +0200 pear@mowd.nl (Charlie van de Kerkhof) wrote:
Hi, I use the Date library, but if I include a file which includes the Date library then a Notice is shown: Notice: Undefined offset: 2048 in lib/pear/Date.php on line 93
But line 93: '    var $year;' is only used to define the var 
$year.
Has anybody any idea?
Do you have this message using only this one line script: <?php include 'Date.php';?>
include_once('Date.php');
And nothing else included?
include_once is enough
which php version are you using?
5.1.2 But I discoverd that if a constont is true (AM_DEBUG) then it workes fine, otherwise wheb it is false it fails. mmmm.... Seems that it hs to do with that more or less.
AM_DEBUG? There is no such constant in Date. You are not including only Date.php. Or you are not including the correct Date.php.


« previous php.pear.general (#24086) next »