Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit 63f3e1e

Browse files
jjergususox
authored andcommitted
support new versions of HHVM
1 parent 876c384 commit 63f3e1e

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

composer.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,5 @@
3131
},
3232
"scripts": {
3333
"tests": "env hhvm vendor/bin/hacktest tests"
34-
},
35-
"config": {
36-
"platform": {
37-
"hhvm": "4.1.0"
38-
}
3934
}
4035
}

src/Uri.hack

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ final class Uri implements UriInterface {
333333
}
334334

335335
private function filterPath(string $path): string {
336+
$_count = null;
336337
return \preg_replace_callback(
337338
'/(?:[^'.
338339
static::$char_unreserved.
@@ -342,10 +343,13 @@ final class Uri implements UriInterface {
342343
return \rawurlencode($match[0]);
343344
},
344345
$path,
346+
-1,
347+
inout $_count,
345348
);
346349
}
347350

348351
private function filterQueryAndFragment(string $str): string {
352+
$_count = null;
349353
return \preg_replace_callback(
350354
'/(?:[^'.
351355
static::$char_unreserved.
@@ -355,6 +359,8 @@ final class Uri implements UriInterface {
355359
return \rawurlencode($match[0]);
356360
},
357361
$str,
362+
-1,
363+
inout $_count,
358364
);
359365
}
360366

0 commit comments

Comments
 (0)