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

Ingmar Schlecht ingmar at typo3.org
Sun Feb 4 17:43:42 CET 2007


+1, based on:
 - testing
 - detailed reading and understanding of the patch

cheers
Ingmar

Michael Stucki schrieb:
> I tracked this issue down with Ingmar who found one of his installations
> which is affected by this bug (he didn't know that before ;-))
> 
> So finally, we found a cleaner solution to the problem, and Ingmar could
> even confirm that it is working fine.
> 
> See attached patch V3. Look at _w but test the other one.
> 
> Branches: Still TYPO3_4-0 and Trunk.
> 
> - michael
> 
> Ingmar Schlecht wrote:
> 
>> 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


More information about the TYPO3-team-core mailing list