ZF-11162: Zend_Http_Client::setUri mutates argument
Description
Zend_Http_Client::setUri (and therefore the constructor) mutates the passed Zend_Uri_Http object by changing the port number if it is not set to the default. Furthermore, setting parameters etc, will mutate the originally passed argument too. Imho this shouldn't be the case, the passed argument should be const, and if Zend_Http_Client wishes to adopt the instance, it should be cloned.
I'll be providing a patch and a test here.
Comments
Posted by Gerard van Helden (drm) on 2011-03-11T00:34:44.000+0000
Test & patch
Posted by Enrico Zimuel (zimuel) on 2011-08-01T10:48:38.000+0000
Committed in trunk (24334)
Posted by Enrico Zimuel (zimuel) on 2011-08-01T11:00:51.000+0000
Solved in branches/release-1.11 (commit 24335)