[TYPO3-core] RFC: Fix bug when comparing version numbers
Franz Holzinger
franz at fholzinger.com
Wed Jul 12 20:41:46 CEST 2006
Hello Karsten,
I think this will not work in all cases.
>If it is already there, but contains such bogus values the cleanup does not
>happen. The attached patch changes this.
>
>
>
>if(isset($emConf['constraints']) && isset($emConf['dependencies'])) {
>
E.g. take sr_feuser_register 2.5.0 from TER.
'dependencies' => '',
'constraints' => array(
'depends' => array(
'cms' => '',
'static_info_tables' => '2.0.0-',
'php' => '2.0-',
'typo3' => '',
),
'conflicts' => array(
),
'suggests' => array(
),
),
( I have only manipulated the version numbers for testing).
This code would not get reached as soon as dependencies is empty. However there are contraints-depends of which the version numbers should get converted.
Or is this an error and dependencies must be filled in?
But I think this error comes from TER, which empties the dependencies.
- Franz
More information about the TYPO3-team-core
mailing list