[TYPO3-core] RFC: renaming *.inc files
Michael Stucki
michael at typo3.org
Tue Feb 14 16:46:08 CET 2006
Hi René,
> TYPO3 has a few files with the suffix *.inc which are in fact PHP files.
> The locations are
> .../tslib/media/scripts/*.inc
> typo3/class.*.inc
>
> The question is to rename the files to *.php
+1
> There's no strong reason to rename the files except that it might be
> possible to fetch the *.inc files as text file when a webserver is not
> configured to execute these files as PHP script. I don't know if it is a
> security risk. The main point is consistency I think.
I think the reason for using *.inc was that these could be edited while *.php
were not allowed to be edited...(?)
> In the typo3/ folder the *.inc files are classes that are used in BE module
> scripts. I think they can be renamed.
> But we should stay with the XCLASS defnition of these files for
> compatibility
> $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class.db_list_extra.inc']
>
> A possible solution might be to have the XCLASS stuff twice, with *.inc and
> *.php.
+1 for using both, marking the old one as deprecated and giving priority to
the new one.
- michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060214/05fc5a0a/attachment.pgp
More information about the TYPO3-team-core
mailing list