[TYPO3-core] RFC: Bugfix #7425: syntax error in temp_CACHE*.php
Ernesto Baschny [cron IT]
ernst at cron-it.de
Mon Feb 18 16:18:39 CET 2008
Steffen Kamper wrote: on 18.02.2008 12:13:
>> How do you know that there aren't <?php and ?> in the ext_tables/localconf
>> files in extensions? It might be used somewhere. Either in some text
>> string (e.g. for writing some PHP file) or even to generate some output.
>> This:
>>
>> $string = '<?php echo Hi; ?>';
>>
>> will become this:
>>
>> $string = 'echo Hi;';
>>
>> with your patch. And this:
>>
>> ob_start();
>> ?>
>> This is my output
>> <?php
>> $string = ob_get_contents();
>>
>> will become:
>>
>> ob_start();
>> This is my output
>> $string = ob_get_contents();
>>
>> which is why I consider it too much to strip.
>>
>> Cheers,
>> Ernesto
>
> ok ok :-) i'm fine with your patch
> It was only because i never saw usage of that before, but who knows what
> people like to write in their config file ...
I see those files more as "initialization routines" where extensions can
"hook into" TYPO3. So they are more than just "config files". Of course
it leaves more space for errors, but it also keep it very flexible.
Cheers,
Ernesto
More information about the TYPO3-team-core
mailing list