PHP warning

BigData::hasStream(): Argument #1 ($result) must be passed by reference, value given

/home/u552477061/domains/vgqst.com/public_html/limesurvey/application/libraries/BigData.php(24)

12     /**
13      * This function combines json_encode and echo.
14      * If a stream is passed (or is part of the array) it's content will be
15      * directly streamed instead of reading it into memory first.
16      * Supported flags:
17      * JSON_FORCE_OBJECT
18      * @param array $json
19      * @param int $options Same flags used in JSON_ENCODE.
20      */
21     public static function json_echo($json, $options = 0)
22     {
23         // Scan array for any streams.
24         $hasStream = array_reduce($json, array('BigData', 'hasStream'), false);
25 
26         // If there is no stream we are done.
27         if (!$hasStream) {
28             echo json_encode($json, $options);
29         } else {
30             self::json_echo_data($json, ($options & JSON_FORCE_OBJECT) == JSON_FORCE_OBJECT);
31         }
32     }
33 
34     protected static function hasStream(&$result, $item)
35     {
36         if ($result === true) {

Stack Trace

#0
+
 /home/u552477061/domains/vgqst.com/public_html/limesurvey/application/libraries/BigData.php(24): array_reduce(array("id" => 1, "result" => "uoQndvTd4P6s3QpZ_ip4qbndx2TQsAOg", "error" => null), array("BigData", "hasStream"), false)
19      * @param int $options Same flags used in JSON_ENCODE.
20      */
21     public static function json_echo($json, $options = 0)
22     {
23         // Scan array for any streams.
24         $hasStream = array_reduce($json, array('BigData', 'hasStream'), false);
25 
26         // If there is no stream we are done.
27         if (!$hasStream) {
28             echo json_encode($json, $options);
29         } else {
#1
+
 /home/u552477061/domains/vgqst.com/public_html/limesurvey/application/libraries/LSjsonRPCServer.php(64): BigData::json_echo(array("id" => 1, "result" => "uoQndvTd4P6s3QpZ_ip4qbndx2TQsAOg", "error" => null))
59 
60         // output the response
61         if (is_null($request) || !empty($request['id'])) {
62 // notifications don't want response
63             header('content-type: text/javascript');
64             BigData::json_echo($response);
65         }
66 
67         // finish
68         return true;
69     }
#2
+
 /home/u552477061/domains/vgqst.com/public_html/limesurvey/application/controllers/admin/RemoteControl.php(66): LSjsonRPCServer::handle(remotecontrol_handle)
61                 Yii::app()->loadLibrary('LSjsonRPCServer');
62                 if (!isset($_SERVER['CONTENT_TYPE'])) {
63                     $serverContentType = explode(';', $_SERVER['HTTP_CONTENT_TYPE']);
64                     $_SERVER['CONTENT_TYPE'] = reset($serverContentType);
65                 }
66                 LSjsonRPCServer::handle($oHandler);
67             }
68             foreach (App()->log->routes as $route) {
69                 $route->enabled = $route->enabled && !($route instanceof CWebLogRoute);
70             }
71             Yii::app()->session->destroy();
2022-07-10 05:39:57 LiteSpeed Yii Framework/1.1.24-dev