Hi,
ich hab ein kleines Problem mit einer ModBusMaster.php welche nicht unter php7 CentOS 7 läuft.
beim Aktivieren wird folgende Fehlermeldung ins .log geschrieben
leider weiß ich nicht genau was zu ändern ist. In der ModbusMaster.php ist Zeile 43 folgendes:
Kann mir eventuell hier jemand wieterhelfen? Danke
ich hab ein kleines Problem mit einer ModBusMaster.php welche nicht unter php7 CentOS 7 läuft.
beim Aktivieren wird folgende Fehlermeldung ins .log geschrieben
Code:
Datei: /usr/local/edomi/main/include/php/helio/ModbusMaster.php | Fehlercode: 8192 | Zeile: 43 | Methods with the same name as their class will not be constructors in a future version of PHP; ModbusMaster has a deprecated constructor
leider weiß ich nicht genau was zu ändern ist. In der ModbusMaster.php ist Zeile 43 folgendes:
PHP-Code:
class ModbusMaster {
private $sock;
public $host = "192.168.1.1";
public $port = "502";
public $client = "";
public $client_port = "502";
public $status;
public $timeout_sec = 5; // Timeout 5 sec
public $endianness = 0; // Endianness codding (little endian == 0, big endian == 1)
public $socket_protocol = "UDP"; // Socket protocol (TCP, UDP)
Kann mir eventuell hier jemand wieterhelfen? Danke
Kommentar