the PLCAPI class requires __construct as well in order to move to php8
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 28 Apr 2022 12:39:59 +0000 (14:39 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 28 Apr 2022 12:39:59 +0000 (14:39 +0200)
php/plc_api.php

index 551717c..38aa896 100644 (file)
@@ -41,11 +41,11 @@ class PLCAPI {
     var $calls;
     var $multicall;
 
-    function PLCAPI($auth = NULL,
-                    $server = PLC_API_HOST,
-                    $port = PLC_API_PORT,
-                    $path = PLC_API_PATH,
-                    $cainfo = NULL) {
+    function __construct($auth = NULL,
+                         $server = PLC_API_HOST,
+                         $port = PLC_API_PORT,
+                         $path = PLC_API_PATH,
+                         $cainfo = NULL) {
         $this->auth = $auth;
         $this->server = $server;
         $this->port = $port;