Project

General

Profile

Actions

Bug #18306

closed

TYPO3 crashes because of array_merge error with PHP5 (pibase)

Added by Patrick Lobacher about 16 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2008-03-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In PHP 5 the function array_merge needs both arguments to be arrays.

Sometimes this is not the case so the arguments should be casted anyway to avoid this error:

Line 502: /typo3/sysext/cms/tslib/class.tslib_pibase.php

$wrapper = array_merge($wrapper,$wrapArr);

should be changed to

$wrapper = array_merge($wrapper,(array)$wrapArr);

The line above is in the function pi_list_browseresults

(issue imported from #M7840)


Files

20080312_arrayMergeBug_pibase.diff (542 Bytes) 20080312_arrayMergeBug_pibase.diff Administrator Admin, 2008-03-12 13:22
Actions

Also available in: Atom PDF