ZF-2575: Typo in Zend_Http_Cookie documentation


Bug posted by Vladas Diržys on public mailing list.

{quote} I think there is an error in documentation.…

Example 17.22. and forward uses: $cookie = Zend_Http_Client('foo=two+words; ....);

but it should be: $cookie = Zend_Http_Cookie('foo=two+words; ....); {quote}


I suppose this is not the only one error.

$cookie = Zend_Http_Client('foo=two+words;; path=/somedir; secure;');

should be

$cookie = Zend_Http_Client::fromString('foo=two+words;; path=/somedir; secure;');

and the same for the other examples where the cookie is created directly from the raw header.

I attach a patch for both typo and ::fromString issues.

If you are not able to fix this issue please reassign it to "unassigned" so anyone other which has permition is able to review and commit the changes.

Hi Thomas, I'm able to do this (I have SVN access and HTTP Cookies is a field I have enough knowledge to feel comfortable to made a change), I just wanted to take some time because I created the patch at office in a while and I wanted to double check it at home since it was a change to the main manual. :)

Fixed in r7815

Changing to comply with new IT coventions for components.