[TYPO3-50-general] Discussion to CodingStandards

Tim Eilers tim.eilers at web.de
Mon Jan 14 20:40:15 CET 2008


Hi Robert,

Robert Lemke schrieb:
 >> Another open question i would like to point out in this post:
>>
>> You defined the rule that you have to declare the encoding in the top of
>> every file. I didn't find much to that (php manual only says that
>> "ticks" can be defined...).
>> But "encoding" is recognized as a constant and must therefore be written
>> in uppercase. will the php 6 (or 5.3) charset things still work if it is
>> written uppercase?
> 
> "encoding" is no constant in that sense. It will be only supported by PHP6
> and as far as I have seen, it must be lowercase:
> 
>    declare(encoding = 'utf-8');
> 
> I don't have a working PHP6 installation at hand right now, but if someone
> tries if "ENCODING" works as well, I don't mind if we write it uppercase.

would be nice. it is important, because it "touches" two sniffs.

we could think about leave out that line for the first time, but then it
will be a big change to add it again. so it would be cool, if we could
decide that now...


More information about the TYPO3-project-5_0-general mailing list