[horde] 4.0-git: Version Check in Exception.php
Rick Romero
rick at havokmon.com
Tue Dec 7 15:08:46 UTC 2010
Quoting Jan Schneider <jan at horde.org>:
>> 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/www.beta.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?
>
huh? This entire thread is about having to change Exception.php to detect
5.2.0 instead of 5.3.0.
"Why?" Is my question, not yours :)
What do you want from me to help you determine the cause of "Cannot
redeclare class Horde_Exception in Exception.php" ? Obvously declaring
the empty class 'works', but why does the 'completed' class throw an error?
Rick
More information about the horde
mailing list