From: Roland Häder Date: Sat, 19 May 2012 12:50:23 +0000 (+0000) Subject: Remove unneeded array elements to save some memory X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=103fb2d430cf09df2c4515140001c2476d5cf69e;p=core.git Remove unneeded array elements to save some memory --- diff --git a/inc/classes/main/container/socket/class_SocketContainer.php b/inc/classes/main/container/socket/class_SocketContainer.php index 9a172d0c..ff2b1a32 100644 --- a/inc/classes/main/container/socket/class_SocketContainer.php +++ b/inc/classes/main/container/socket/class_SocketContainer.php @@ -44,6 +44,10 @@ class SocketContainer extends BaseContainer implements Registerable { // Get a new instance $containerInstance = new SocketContainer(); + // Remove unneeded entries + unset($packageData[NetworkPackage::PACKAGE_DATA_CONTENT]); + unset($packageData[NetworkPackage::PACKAGE_DATA_SIGNATURE]); + // Debug message /* NOISY-DEBUG: */ $containerInstance->debugOutput(__METHOD__ . ':socketResource=' . $socketResource . ',packageData='.print_r($packageData,true));