--- class-http.php	2010-07-04 01:15:32.949671800 +0300
+++ new.php	2010-07-04 01:18:00.613734300 +0300
@@ -1749,15 +1749,12 @@
 				return false;
 
 			// Set properties based directly on parameters
-			$this->name   = $data['name'];
-			$this->value  = isset( $data['value'] ) ? $data['value'] : '';
-			$this->path   = isset( $data['path'] ) ? $data['path'] : '';
-			$this->domain = isset( $data['domain'] ) ? $data['domain'] : '';
-
-			if ( isset( $data['expires'] ) )
-				$this->expires = is_int( $data['expires'] ) ? $data['expires'] : strtotime( $data['expires'] );
-			else
-				$this->expires = null;
+			foreach ( $data as $key => $val )
+			{
+				$key = strtolower( $key );
+				if ( 'expires' == $key )
+					$val = is_int( $val ) ? $val : strtotime( $val );
+				$this->$key = $val;
+			}
 		}
 	}
 
@@ -1774,7 +1771,7 @@
 	 */
 	function test( $url ) {
 		// Expires - if expired then nothing else matters
-		if ( time() > $this->expires )
+		if ( isset($this->expires) && time() > $this->expires )
 			return false;
 
 		// Get details on the URL we're thinking about sending to
