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

Ernesto Baschny [cron IT] ernst at cron-it.de
Wed Oct 28 22:26:55 CET 2009


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.

Cheers,
Ernesto

[1] http://bugs.php.net/bug.php?id=47358
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 12371.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091028/15ad3885/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 12371_41.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091028/15ad3885/attachment.asc>


More information about the TYPO3-team-core mailing list