diff --git a/lib/xport/stream.php b/lib/xport/stream.php
index <HASH>..<HASH> 100644
--- a/lib/xport/stream.php
+++ b/lib/xport/stream.php
@@ -128,7 +128,7 @@ class XportStream {
 		switch($this->encrypt){
 			case self::CRYPT_LSS:
 				$this->payload = $this->crypt->decrypt($this->payload);
-				$this->size = array_shift(unpack('N',substr($this->payload,0,4)));
+				$this->size = mda_shift(unpack('N',substr($this->payload,0,4)));
 				$this->payload = substr($this->payload,4,$this->size);
 				break;
 			case self::CRYPT_OFF:
upgraded to work with php E_STRICT on and upgraded transport handling of exceptions