Zend Framework

Zend_XmlRpc_Request_Http::__construct() does not conform to Zend_XmlRpc_Request::__construct()

Details

Description

The Zend_XmlRpc_Request_Http construct is missing the method and params arguments. If you extend the Http class and then try to assign the method through the constructor, it doesn't get assigned to the internal _method property, though it does in Zend_XmlRpc_Request.

Activity

Hide
Matthew Weier O'Phinney added a comment -

Scheduling for 1.5.0RC2

Show
Matthew Weier O'Phinney added a comment - Scheduling for 1.5.0RC2
Hide
Matthew Weier O'Phinney added a comment -

This is by design. Zend_XmlRpc_Request_Http is designed to answer to incoming HTTP requests. Its constructor pulls XML from php://input and passes it to loadXml() – which is when the method and params will be set.

If you don't want this behavior, then extend the Zend_XmlRpc_Request class, or have your extending class accept the method and params and set them itself.

Show
Matthew Weier O'Phinney added a comment - This is by design. Zend_XmlRpc_Request_Http is designed to answer to incoming HTTP requests. Its constructor pulls XML from php://input and passes it to loadXml() – which is when the method and params will be set. If you don't want this behavior, then extend the Zend_XmlRpc_Request class, or have your extending class accept the method and params and set them itself.

People

Vote (0)
Watch (0)

Dates

  • Due:
    Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
15m
Original Estimate - 15 minutes
Remaining:
15m
Remaining Estimate - 15 minutes
Logged:
Not Specified
Time Spent - Not Specified