[TYPO3-core] RFC #13258: Bugfix: TYPO3 4.2 should work on PHP 5.1 again

Ernesto Baschny [cron IT] ernst at cron-it.de
Wed Feb 24 20:20:14 CET 2010


Hi,

- commited patch v3 to TYPO3-4.2 (rev.7024), will end up in 4.2.13.

- commited enhanced unit tests to trunk (rev.7025) and TYPO3-4.3
(rev.7026), no ChangeLog entry for this one. We had no unit tests in v4.2.

Cheers,
Ernesto

Ernesto Baschny [cron IT] schrieb am 16.02.2010 11:51:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=13258
> 
> Branches: TYPO3_4-2
> 
> 
> Problem:
> TYPO3 v4.2 was developed with PHP 5.1 in mind, because some major
> commercial Linux distributions (RedHat, CentOS) which long time support
> still ship with it.
> 
> With the minor release of 4.2.11 we broke that rule, by introducing a
> "filter_var()" function to fix a regression to a security fix (rev. 6408
> [1], RFC #12324 [2]).
> 
> This broke several sites that tried to upgrade, which end up downgrading
> back to 4.2.10.
> 
> 
> Solution:
> The filter_var() function can be replaced by a simple "parse_url" and
> checking if the "scheme" is set. This is a valid replacement, because
> after all this is what PHP internally also does with filter_var (I just
> checked the PHP source-code, believe me).
> 
> Attached patch does that.
> 
> I also checked that change with our latests unit tests (in trunk), as
> this functionality is covered by unit tests, and all passed with successed.
> 
> 
> Cheers,
> Ernesto
> 
> [1] http://forge.typo3.org/repositories/revision/typo3v4-core/6408
> [2] http://bugs.typo3.org/view.php?id=12324
> 
> 


More information about the TYPO3-team-core mailing list