[horde] 4.0-git: Version Check in Exception.php
Jan Schneider
jan at horde.org
Tue Dec 7 14:50:09 UTC 2010
Zitat von Rick Romero <rick at havokmon.com>:
> Quoting Jan Schneider <jan at horde.org>:
>>
>>> Zitat von Rick Romero <rick at havokmon.com>:
>> >
>> >> Jan:
>> >>
>> >>> Zitat von Florian Brandner <florian at brandner.net>:
>> >>>
>> >>>> Hi everyone!
>> >>>>
>> >>>> I am currently playing around with the current H4 from GIT, and got a
>> >>>> question regarding the Exception.php:
>> >>>> I am running here with a PHP 5.2.6, and without any changes I get the
>> >>>> Error "Cannot redeclare class Horde_Exception". But when changing the
>> >>>> Version-check in Exception.php from 5.3.0 to 5.2.0 it runs.
>> At least I
>> >>>> get a webpage without errors.
>> >>>>
>> >>>> Could that be a bug? Or did I do something wrong?
>> Unfortunately I do not
>> >>>> really know much about PHP, so I have no clue if "5.2.0" makes any
>> >>>> sense, but it works for me ;-)
>> >>
>> >>> No, that error message doesn't make any sense. I really don't have
>> >>> any idea where this would come from.
>> >>
>> >> I get that error too:
>> >> Fatal error: Cannot redeclare class Horde_Exception in
>> >>
>> /usr/local/www/sub/www.beta.net/data/horde_git/horde/framework/Exception/lib/Horde/Exception.php on
>> line
>> >> 17
>> >>
>> >> .. and I was making the same local fix, but it seems as development
>> >> continues the 'fallout' spreads. At first I couldn't get into
>> >> Calendar, now IMP Preferences, both throwing errors:
>> >>
>> >> Fatal error: Wrong parameters for Exception([string $exception [,
>> >> long $code ]]) in
>> >>
>> /usr/local/www/sub/www.beta.net/data/horde_git/horde/framework/Exception/lib/Horde/Exception/Prior.php on
>> line
>> >> 38
>> >
>> > Can you provide a backtrace? What parameters *are* being passed to
>> > the Exception constructor?
>>
>> Message:ACLs not configured for this server. Code:0 Previous:
>> FATAL ERROR: Wrong parameters for Exception([string $exception [,
>> long $code ]]) in
>> /USR/LOCAL/WWW/SUB/BETA.VFEMAIL.NET/DATA/HORDE_GIT/HORDE/FRAMEWORK/EXCEPTION/LIB/HORDE/EXCEPTION/PRIOR.PHP on line
>> 38
>>
>> Looks like $previous is empty.
>>
>> Keep in mind I've changed Exception.php to check for php version
>> < 5.2.0 instead of 5.3.0..
Uh why? And then you wonder why this breaks things?
>> If I change Prior.php line 38 from:
>> parent::__construct($message, $code, $previous);
>> to
>> parent::__construct($message, $code);
>>
>> I can get back into prefrences (and calendar works better, but it
>> looks like I have a table issue on my end) - but I'm concerned that
>> not I've made two changes from the standard..
>>
>> Rick
>>
>>
>>
> --
> Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the horde
mailing list