Remove unneeded array elements to save some memory
[core.git] / 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));