[TYPO3-core] RFC: Bug 3069: Extension manager crashes

Michael Stucki michael at typo3.org
Sat Feb 3 12:35:11 CET 2007


Hi Ingmar,

> wouldn't a simple
>    if(!$versionRange[0]) $versionRange[0] = 0;
>    if(!$versionRange[1]) $versionRange[0] = 0;
> have fixed the problem as well?

I'm not sure anymore if the PHP bug occurs when $versionRange[0] is empty or
not set. In the first case, setting it to 0 wouldn't help, so I'd better
keep it as it is. OK for you?

> 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?

I don't get that, what do you mean here?

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/


More information about the TYPO3-team-core mailing list