public function readObject($object = null)
    {
        if ($object === null) {
            $object = array();
        }

        while (true) {
            $key        = $this->_stream->readUTF();
            $typeMarker = $this->_stream->readByte();
            if ($typeMarker != Zend_Amf_Constants::AMF0_OBJECTTERM ){
                //Recursivly call readTypeMarker to get the types of properties in the object
                $object[$key] = $this->readTypeMarker($typeMarker);
            } else {
                //encountered AMF object terminator
                break;
            }
        }
        $this->_reference[] = $object;
        return (object) $object;
    }
public function readObject($object = null)
    {
        if ($object === null) {
            $object = array();
        }

        while (true) {
            $key        = $this->_stream->readUTF();
            $typeMarker = $this->_stream->readByte();
            if ($typeMarker != Zend_Amf_Constants::AMF0_OBJECTTERM ){
                //Recursivly call readTypeMarker to get the types of properties in the object
                $object[$key] = $this->readTypeMarker($typeMarker);
            } else {
                //encountered AMF object terminator
                break;
            }
        }
        $this->_reference[] = $object;
        return (object) $object;
    }
public function readObject ( $ object = null ) { if ( $ object === null ) { $ object = array ( ) ; } while ( true ) { $ key = $ this -> _stream -> readUTF ( ) ; $ typeMarker = $ this -> _stream -> readByte ( ) ; if ( $ typeMarker != Zend_Amf_Constants :: AMF0_OBJECTTERM ) { //Recursivly call readTypeMarker to get the types of properties in the object $ object [ $ key ] = $ this -> readTypeMarker ( $ typeMarker ) ; } else { //encountered AMF object terminator break ; } } $ this -> _reference [ ] = $ object ; return ( object ) $ object ; }
Read AMF objects and convert to PHP objects

Read the name value pair objects form the php message and convert them to
a php object class.

Called when the marker type is 3.

@param  array|null $object
@return object
Read AMF objects and convert to PHP objects