[TYPO3-core] RFC: #9581: clean up t3lib_exec

Francois Suter fsu-lists at cobweb.ch
Sat Apr 3 15:08:37 CEST 2010


REMINDER

I would quite like a fellow core dev's +1 on this one before going ahead.

Thanks

François

> Hi,
>
> not yet ready ;-)
>
> line 319 - 320:
>
> $pathSetup = implode("\n", t3lib_div::trimExplode(',',
> $GLOBALS['SYS']['binSetup'], 1));
> $pathSetup = t3lib_div::trimExplode("\n", $pathSetup, 1);
>
> There is "['TYPO3_CONF_VARS']" missing. Anyway I don't like this hole
> explode(implode(explode()))-stuff ... why not:
>
> preg_split('/[\n,]+/', $GLOBALS['TYPO3_CONF_VARS']['SYS']['binSetup']);
> (thanks to steffenk ;-)
>
> Additionally there were some smaller CGL-issues (mainly missing space in
> "foreach(" and in declaration-parameters).
>
> I attached a cleaned patch considering this stuff ...
>
> Regards, foertel
>
>
> Am 26.03.10 12:53, schrieb Francois Suter:
>> Hi,
>>
>>> * use PHP5 function static declaration
>>> * use static member variables instead of globals
>>> * reformat according to CGL
>>
>> Thanks to Felix for refreshing this issue.
>>
>> Attached is v8 of the patch. It adds some forgotten CGL cleanups or some
>> new ones from more recent CGL updates (e.g. booleans should be
>> uppercase).
>>
>> Most importantly I have removed from the patch a revert of a previous
>> patch, which seems abusive to me.
>>
>> I'm talking about the following lines:
>>
>> + if (TYPO3_OS=='WIN') {
>> +// TODO: add the most common paths for WIN
>> + $sysPathArr = array_merge($sysPathArr, array (
>> + 'C:/Programs' => 'C:/Programs',
>> + 'C:/Perl/bin' => 'C:/Perl/bin',
>> + ));
>> + } else { // UNIX
>>
>> which reintroduced wrong Windows exec paths that were purposefully
>> removed in rev 6521, related to: http://bugs.typo3.org/view.php?id=12547
>>
>> I tested by checking the "Installed services" report which contains
>> check of all available executable paths and found it to be working like
>> before.
>>
>> I would like to have fresh votes on this patch.
>>
>> Cheers
>>



-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-team-core mailing list