Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fix BC break in HTTP client resetParameters signature #4411

Conversation

weierophinney
Copy link
Member

See zendframework/ZendOAuth#11 for an example of the consequences of the change.

This PR simply comments out the parameter (by using a comment, we indicate it's expected), and uses func_num_args() and func_get_arg() to sniff for it.

- Even though the signature was technically still BC compatible, any extension
  that did not define the second optional parameter would raise a fatal error.

- Solution was to remove the argument, and check for it with
  func_num_args/func_get_arg.
@akrabat akrabat closed this in 0fe058f May 3, 2013
akrabat added a commit that referenced this pull request May 3, 2013
gianarb pushed a commit to zendframework/zend-http that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-http that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant