2008年11月13日星期四

[fw-webservices] 1.7 Zend_Server_Abstract BC Breakages

Hi All,

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.

Thanks,
/James

没有评论: