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

Christian Kuhn lolli at schwarzbu.ch
Thu Oct 29 01:56:22 CET 2009


Hey,

Ernesto Baschny [cron IT] wrote:
> 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().

+1 on reading and testing.

Thanks
Christian


More information about the TYPO3-team-core mailing list