[Typo3-dev] TYPO3 + php5 tests
Kasper Skårhøj
kasper2004 at typo3.com
Sun Aug 8 21:04:39 CEST 2004
OK, so for the next release of TYPO3, should I increase PHP version
requirement to "4.1.0" or maybe even higher?
- kasper
On Sun, 2004-08-08 at 13:49, Ingmar Schlecht wrote:
> Hi developers,
>
> Kasper Skårhøj wrote:
> > Yes, I believe this is the only remaining issue we know of (that
> > accessing positions in a variable as if it was an array is not allowed
> > if the variable wasn't an array...)
>
> There is another issue:
> As of PHP5, there is a php.ini option "register_long_arrays" for
> enabling/disabling the $HTTP_*_VARS arrays.
> The option is suggested to set to "off" for performance reasons, but
> it's "on" in the default php.ini.
>
> Typo3 does not work if it's set to 'off'.
>
> Since the super globals (e.g. $_GET) are available since PHP 4.1.0, I
> don't think it's a problem to use them.
>
> So for example Typo3 should consistently use things like:
> $_SERVER['SCRIPT_FILENAME']
>
> instead of
> $HTTP_SERVER_VARS['SCRIPT_FILENAME']
> or
> $GLOBALS['HTTP_SERVER_VARS']['SCRIPT_FILENAME']
>
> Read more about it at [1] and [2].
>
> I suggest Kasper does a global regexp search/replace and commits the
> changed files to CVS.
>
> cheers,
> Ingmar
>
> [1] http://www.php.net/manual/en/language.variables.predefined.php
> [2]
> http://www.php.net/manual/en/ini.sect.data-handling.php#ini.register-long-arrays
> _______________________________________________
> Typo3-dev mailing list
> Typo3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
--
- kasper
--------
Please notice NEW EMAIL ADDRESS for 2004!! (due to SPAM-contamination)
"kasper2004 at typo3.com"
More information about the TYPO3-dev
mailing list