ZF-11598: Improvement Zend_Http_Client::getAdapter()


Case the 'adapter' was assigned in config the method Zend_Http_Client::getAdapter() should verify if the o adapter is null and assign in next. Sample code below.

public function getAdapter()
   if (null === $this->adapter) {

    return $this->adapter;


Should allow: $client = new Zend_Http_Client(null, array('adapter' => 'Zend_Http_Client_Adapter_Test')); $client->getAdapter();

Commit in trunk r24261.

Added the test case (commit in trunk 24298)

Solved in branches/release-1.11 (commit 24302)

@Enrico I already had added a test case in StaticTest ;), No problem will deleted.

Greetings Ramon

Deleted test case in r24308.