예제 #1
0
 function writeList(&$value)
 {
     if ($this->writeReference($value)) {
         return;
     }
     $this->stream .= 'V';
     // type, maybe we don't need type info since this is PHP
     $this->stream .= 't';
     $this->writeStringData('');
     // end type info
     if (!empty($value)) {
         $this->stream .= 'l';
         $this->stream .= Hessian_ByteUtils::getIntBytes(count($value), 32);
         foreach ($value as $val) {
             $this->writeObject($val);
         }
     }
     $this->stream .= 'z';
 }