[TYPO3-core] RFC #12371: Warning issued on first load of install tool

Ernesto Baschny [cron IT] ernst at cron-it.de
Thu Oct 29 11:08:20 CET 2009


Ernesto Baschny [cron IT] schrieb:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=12371
> 
> Branches:
> trunk, TYPO3_4-2 and TYPO3_4-1
> 
> Problem:
> Warning issued on first load of install tool:
> Warning: Invalid argument supplied for foreach() in
> /path/to/TYPO3_4-2-10/typo3/sysext/install/mod/class.tx_install_session.php
> on line 349
> 
> Happens only when open_basedir restriction is set.
> 
> Solution:
> Due to a PHP misbehaviour, glob() returns a "false" instead of an empty
> array when there are no files and open_basedir is set (see [1]). So we
> simply check the return value before passing that to the foreach().
> 
> Patch for 4.1 is just different because of the non-present "public"
> visibility.

Commited to
- trunk rev. 6297 (beta3)
- 4.2 rev 6298 (4.2.11)
- 4.1 rev 6299 (4.1.14)

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list