]> git.mxchange.org Git - core.git/commitdiff
Remove unneeded array elements to save some memory
authorRoland Häder <roland@mxchange.org>
Sat, 19 May 2012 12:50:23 +0000 (12:50 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 19 May 2012 12:50:23 +0000 (12:50 +0000)
inc/classes/main/container/socket/class_SocketContainer.php

index 9a172d0cc3e7b339e66f97f97fda24939a68802d..ff2b1a3270bc5c333bbfa5081710c7bff175e05b 100644 (file)
@@ -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));