Task #72785
closed
Do we really need this in every file or in the access points (currently /index.php
, typo3/index.php
and typo3/cli_dispatch.phpsh
) only?
As documented in every file.
Ah thanks, didn't know that the declaration of included files was respected in addition to the calling file.
There seems to be a contradiction in the docs.
http://php.net/manual/en/control-structures.declare.php
says:
The declare construct can also be used in the global scope, affecting all code following it (however if the file with declare was included then it does not affect the parent file)
So setting the declare() once in the entry script should actually force this for all included files as well.
Markus Klein wrote:
So setting the declare() once in the entry script should actually force this for all included files as well.
Thanks for confirming. :-)
- Status changed from On Hold to Resolved
New classes will get the declare statement.
- Status changed from Resolved to Closed
Also available in: Atom
PDF