Projekt

Allgemein

Profil

Aktionen

GX-Bug #54504

geschlossen

Updater PHP 5.3 Kompatibilität bei Update 3.7.2.0

Von Waldemar Willer vor mehr als 6 Jahren hinzugefügt. Vor mehr als 6 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Sofort
Zugewiesen an:
Moritz Bunjes
Kategorie:
Updater
Zielversion:
% erledigt:

100%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
3.7.2.0, 3.7.2.0 beta1, 3.7.3.0, 3.7.3.0 beta1
Release Notes Langtext:

Das Update auf 3.7.2.0 ist nun mit PHP 5.3 kompatibel.


Beschreibung

Wenn auf dem Server PHP 5.3 läuft kommt ein Fehler beim Update:

Falscher Rückgabewert:

Parse error: syntax error, unexpected '[' in /usr/www/users/gmbyhe/custom/373/gambio_updater/updates/v3.7.2.0/dependent.inc.php on line 131

Ursache hierfür ist : $languageCodes = [];"

Kurze Array-Syntax kam erst mit 5.4 siehe auch: http://php.net/manual/de/migration54.new-features.php

Zitat: "Die kurze Array-Syntax wurde hinzugefügt, z.B. $a = [1, 2, 3, 4]; oder $a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4];."


Aktionen

Auch abrufbar als: Atom PDF