From 288e6f5ac013f0c89790d8a87a6779c775ca2010 Mon Sep 17 00:00:00 2001 From: Jon Eyrick Date: Wed, 10 Jun 2020 15:55:17 +0200 Subject: [PATCH] fix memory leak, remove query_logs --- php-binance-api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php-binance-api.php b/php-binance-api.php index d3403056..8cd3e78e 100755 --- a/php-binance-api.php +++ b/php-binance-api.php @@ -52,7 +52,7 @@ class API // /< value of available onOrder assets protected $exchangeInfo = NULL; - protected $query_logs = []; + protected $lastRequest = []; /** * Constructor for the class, @@ -1008,7 +1008,7 @@ protected function httpRequest(string $url, string $method = "GET", array $param $json = json_decode($output, true); - $this->query_logs[] = [ + $this->lastRequest = [ 'url' => $url, 'method' => $method, 'params' => $params,