Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#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 Volker Strähle, 8 years ago

... 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');
}

comment:2 by Torsten Riemer, 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);

comment:3 by Gerhard Waldemair, 8 years ago

Resolution: fixed
Status: newclosed

In 10887:

fix #1252

comment:4 by Torsten Riemer, 8 years ago

In 10892:

fix #1252

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.