File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
Revision history for URI
2
2
3
- {{$NEXT}}
3
+ 1.75 2019-01-08 19:45:38Z
4
4
- $uri->canonical unconditionally returns a clone (GH#58) (Dorian Taylor)
5
5
6
6
1.74 2018-04-22 12:30:44Z
Original file line number Diff line number Diff line change @@ -205,8 +205,12 @@ The common methods available for all URI are:
205
205
uppercasing all escape sequences, and unescaping octets that can be
206
206
better represented as plain characters.
207
207
208
- For efficiency reasons, if the $uri is already in normalized form,
209
- then a reference to it is returned instead of a copy.
208
+ Before version 1.75, this method would return the original unchanged
209
+ ` $uri ` object if it detected nothing to change. To make the return
210
+ value consistent (and since the efficiency gains from this behaviour
211
+ were marginal), this method now unconditionally returns a clone. This
212
+ means idioms like ` $uri->clone->canonical ` are no longer
213
+ necessary.
210
214
211
215
- $uri->eq( $other\_ uri )
212
216
- URI::eq( $first\_ uri, $other\_ uri )
You can’t perform that action at this time.
0 commit comments