Modify ↓
#1252 closed Bug/Fehler (fixed)
PHP-Versionprüfung application_top.php
| Reported by: | Volker Strähle | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.3.0 |
| Component: | Shop | Version: | 2.0.2.2 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
in der application_top steht
// minimum requirement
if (version_compare(PHP_VERSION, '5.3.0', '<=')) {
die('<h1>Minimum requirement PHP Version 5.3</h1>');
}
Mindestvorraussetzung ist lt. Download-Seite 5.4
Attachments (0)
Change History (4)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Hier sind auch noch ie folgenden Dateien zu beachten:
- /_installer/update.php
- /_installer/includes/application.php
- /admin/includes/application_top.php
- /export/idealo/application_idealo.php
- /export/idealo_realtime/application_idealo.php
- /includes/application_top_callback.php
- /includes/application_top_export.php
Die Dateien im Ordner "/includes/external/" lasse ich jetzt mal außen vor...
// turn off magic-quotes support, for both runtime and sybase, as both will cause problems if enabled
if (version_compare(PHP_VERSION, 5.3, '<') && function_exists('set_magic_quotes_runtime')) set_magic_quotes_runtime(0);
if (version_compare(PHP_VERSION, 5.4, '<') && @ini_get('magic_quotes_sybase') != 0) @ini_set('magic_quotes_sybase', 0);
Note:
See TracTickets
for help on using tickets.

... und danach ist eine erneute Prüfung auf eine kleinere Version sinnfrei:
// default time zone if (version_compare(PHP_VERSION, '5.1.0', '>=')) { date_default_timezone_set('Europe/Berlin'); }Das kann man gleich ändern in
if (version_compare(PHP_VERSION, '5.4.0', '<=')) { die('<h1>Minimum requirement PHP Version 5.4</h1>'); }else{ date_default_timezone_set('Europe/Berlin'); }