[TYPO3-core] RFC: Bug 3069: Extension manager crashes
Ingmar Schlecht
ingmar at typo3.org
Wed Jan 24 14:36:20 CET 2007
Hi Stucki,
wouldn't a simple
if(!$versionRange[0]) $versionRange[0] = 0;
if(!$versionRange[1]) $versionRange[0] = 0;
have fixed the problem as well?
And apart from that, you always changed
if(...)
to
if($versionRange[x] && ...)
but wouldn't it be more accurate to sometimes use the && operator and
sometimes the || operator depending on whether version_compare() is
called with '>' or with '<' as its third parameter?
cheers
Ingmar
Michael Stucki wrote:
> This is a SVN patch request.
>
> Problem:
> The extension manager crashes on some systems.
>
> Solution:
> As it seems, some older PHP versions have a problem if version_compare() is
> called with an empty argument.
>
> Meanwhile this problem does not occur anymore (PHP 4.3.0+) but I think it is
> cleaner anyway to check first if the value is true...
>
> Bugtracker reference:
> http://bugs.typo3.org/view.php?id=3069
>
> Branches:
> TYPO3_4-0 & Trunk
>
> Comments:
> This issue was solved by Rainer Härtlein.
>
> - michael
--
Want to know about latest core development? Subscribe to the core list!
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core
More information about the TYPO3-team-core
mailing list