1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-26 11:05:28 +01:00

9 Commits

Author SHA1 Message Date
Victor Sollerhed
fee166a5cc Fixing indentation in UrlParserProvider.php 2013-01-25 11:49:12 +01:00
Victor Sollerhed
706b20e42e Adding unit test case (in data provider) covering that if you use Url::buildUrl with an empty string, you should get an empty string as result. 2013-01-25 11:46:13 +01:00
Adrien Brault
41de374600 Skip tests that need the pecl uri_template lib when it's not installed 2012-11-16 16:25:30 +01:00
Michael Dowling
e7c553030a Adding PECL URI template parser
Keeping BC compatibility, but making ParserRegistry as singleton
Using the PECL URI template parser if the extension is loaded
2012-10-28 21:08:38 -07:00
Michael Dowling
244c61eceb Hardening request and response processing to account for missing parts 2012-09-20 13:28:06 -07:00
Paul Annesley
798bfb0393 UriTemplate suppresses key name for empty arrays.
e.g:

params:            array()
template:          /path{?params*}
previous result:   /path?params=
correct result:    /path

Unfortunately PHP is unable to distinguish between an empty list array
and an empty associative array. However this doesn't matter, because the
empty case of either of these is considered "undefined" by the spec.

http://tools.ietf.org/html/draft-gregorio-uritemplate-08#section-2.3

  A variable defined as a list value is considered undefined if the
  list contains zero members.  A variable defined as an associative
  array of (name, value) pairs is considered undefined if the array
  contains zero members or if all member names in the array are
  associated with undefined values.

http://tools.ietf.org/html/draft-gregorio-uritemplate-08#section-3.2.1

  A variable that is undefined (Section 2.3) has no value and is
  ignored by the expansion process.  If all of the variables in an
  expression are undefined, then the expression's expansion is the
  empty string.
2012-08-17 15:22:25 +10:00
Michael Dowling
db66916895 [Parser] Values set to null are treated as undefined. Minor short circuit if improvement to Guzzle\Http\Url 2012-07-12 11:11:39 -07:00
Michael Dowling
56c7fa0aeb [Parser] Not urldecoding cookie values by default. Addresses #99. 2012-07-11 00:10:16 -07:00
Michael Dowling
142e2460f2 [BC] Moving things around for subtree splits.
Moving Inflection into Common. Moving Guzzle\Http\Parser to Guzzle\Parser.
Adding composer.json files for each subtree split
Fixing failing curl test
2012-06-29 16:13:43 -07:00