2008年11月13日星期四

Re: [fw-webservices] 1.7 Zend_Server_Abstract BC Breakages

-- James Dempster <letssurf@gmail.com> wrote
(on Thursday, 13 November 2008, 03:40 PM +0000):
> Even though it seems that ZF aims to not break BC it never seems to happen.
>
> I thought it would be worth noting. Anyone extending Zend_Server_Abstract will
> come into a small problem.
> A new abstract method has been added _fixType so this will need to be added to
> all you server implementations.
>
> I found it just easier to change Zend_Server_Abstract to implement this it's
> self and be overloaded where needed.
>
> e.g.
> /**
> * Map PHP type to protocol type
> *
> * @param string $type
> * @return string
> */
> protected function _fixType($type) {
> return $type;
> }
>
>
> Then the rest of my server code seem to run unaffected. Even from the rest of
> the heavy refractors.

Aha -- I'll make that so it's not abstract. Thanks for the report -- I
thought I'd caught all the BC breakages and reverted them.

For the record... what use case did you have where you were extending
Zend_Server_Abstract? It was primarily intended for the internal server
classes (though until 1.7.0, only the Rest server used it), so I'm
curious to see what uses others were finding for it.

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: