Bug #22194 » 13670-whilelist-foreach_v2-extbase.patch
typo3/sysext/extbase/Classes/Utility/Arrays.php (Arbeitskopie) | ||
---|---|---|
*/
|
||
static public function integerExplode($delimiter, $string) {
|
||
$chunksArr = explode($delimiter, $string);
|
||
while (list($key, $value) = each($chunksArr)) {
|
||
foreach ($chunksArr as $key => $value) {
|
||
$chunks[$key] = intval($value);
|
||
}
|
||
reset($chunks);
|
||
return $chunks;
|
||
}
|
||
... | ... | |
* @api
|
||
*/
|
||
static public function arrayMergeRecursiveOverrule(array $firstArray, array $secondArray, $dontAddNewKeys = FALSE, $emptyValuesOverride = TRUE) {
|
||
reset($secondArray);
|
||
while (list($key, $value) = each($secondArray)) {
|
||
foreach ($secondArray as $key => $value) {
|
||
if (array_key_exists($key, $firstArray) && is_array($firstArray[$key])) {
|
||
if (is_array($secondArray[$key])) {
|
||
$firstArray[$key] = self::arrayMergeRecursiveOverrule($firstArray[$key], $secondArray[$key], $dontAddNewKeys, $emptyValuesOverride);
|
typo3/sysext/extbase/Classes/Utility/Extension.php (Arbeitskopie) | ||
---|---|---|
$returnValue = false;
|
||
// Iterate with while since we need the current array position:
|
||
while (list(,$token) = each($tokenList)) {
|
||
foreach ($tokenList as $token) {
|
||
// parse token (see http://www.php.net/manual/en/function.token-get-all.php for format of token list)
|
||
if (is_array($token)) {
|
||
list($id, $text) = $token;
|