ZF-4764: Zend_Server_Abstract changed breaking backwards compability

Issue Type: Bug Created: 2008-11-01T03:03:00.000+0000 Last Updated: 2008-11-13T14:10:25.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Benjamin Eberlei (beberlei) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Server_Reflection

Related issues: Attachments:


Why did the Zend_Server_Abstract have to change? I know this is part of performance issue fixing, but this shouldn't change the backwards compability of the abstract class!

Rather create a new Abstract class that inherits from the old one.


Posted by Benjamin Eberlei (beberlei) on 2008-11-01T03:11:06.000+0000

additionally the change also removed that strange lower() static function in the abstract class which is not used by any Zend component anymore but nevertheless COULD be used by a 3rd party. It has to readded to the class until 2.0 for BC reasons!

Posted by Matthew Weier O'Phinney (matthew) on 2008-11-02T07:00:45.000+0000

I will re-instate the missing public methods to Zend_Server_Abstract. However, a couple of notes:

  • Prior to the recent refactoring, the only class that extended it from within ZF was Zend_Rest_Server. All functionality present in it was specific to that implementation.
  • The currently coded functionality actually is shared now, between both the XmlRpc and Json server implementations. I plan to refactor Zend_Rest_Server to make use of it in the future
  • All old methods and properties that have been removed will be marked as deprecated, and the methods will now trigger an error (E_USER_NOTICE) noting this.

Honestly, I've heard of nobody building on Zend_Server_Abstract, and I suspect it's because it simply had no value previously.

BTW, the new implementation offers the ability to create Zend_Server_Definition objects -- which make it trivial to perform the actual implementation of servers, as well as to share server definitions between different protocols.

Posted by Benjamin Eberlei (beberlei) on 2008-11-02T07:14:13.000+0000

I havent heard of anyone building on Zend_Server_Abstract either.

Due to no obvious reason Zend_Soap_AutoDiscover extends Zend_Server_Abstract. I want to change that but will wait for the 2.0 release to make that BC change.

Posted by Matthew Weier O'Phinney (matthew) on 2008-11-05T07:44:39.000+0000

$magic_methods protected member and lowerCase() static method re-added as of r12300, but marked as deprecated.

Posted by Wil Sinclair (wil) on 2008-11-13T14:10:25.000+0000

Changing issues in preparation for the 1.7.0 release.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.