[TYPO3-core] RFC: renaming *.inc files

René Fritz rene at typo3.org
Tue Feb 14 16:38:14 CET 2006


Branches: TYPO3_4-0

This is already discussed but not yet decided.

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

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.


# .../tslib/media/scripts/*.inc

While the media scripts are used and referenced in projects using TS I would 
say we should stay with these files. In my opinion they are a bit outdated 
anyway because some of them are from the pre-extension era I think.


#typo3/class.*.inc

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.


René

-- 
René Fritz
TYPO3 Association - Active Member
http://association.typo3.org/



More information about the TYPO3-team-core mailing list