Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 051ed6f

Browse filesBrowse files
Stop propagating php* reqs, add random_compat to php70
1 parent 0475f40 commit 051ed6f
Copy full SHA for 051ed6f

10 files changed

+19-14Lines changed: 19 additions & 14 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@ Polyfills are provided for:
1717
introduced in PHP 5.4;
1818
- the `array_column`, `boolval`, `json_last_error_msg` and `hash_pbkdf2`
1919
functions introduced in PHP 5.5;
20+
- the `password_hash` and `password_*` related functions introduced in PHP 5.5,
21+
provided by the `ircmaxell/password-compat` package;
2022
- the `hash_equals` and `ldap_escape` functions introduced in PHP 5.6;
2123
- the `*Error` classes, the `error_clear_last`, `preg_replace_callback_array` and
2224
`intdiv` functions introduced in PHP 7.0;
25+
- the `random_bytes` and `random_int` functions introduced in PHP 7.0,
26+
provided by the `paragonie/random_compat` package;
2327
- a `Binary` utility class to be used when compatibility with
2428
`mbstring.func_overload` is required.
2529

Collapse file

‎composer.json‎

Copy file name to clipboardExpand all lines: composer.json
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=5.3.9",
19+
"php": ">=5.3.3",
2020
"ircmaxell/password-compat": "~1.0",
21-
"symfony/intl": "~2.8|~3.0"
21+
"paragonie/random_compat": "~1.0",
22+
"symfony/intl": "~2.3|~3.0"
2223
},
2324
"replace": {
2425
"symfony/polyfill-php54": "self.version",
Collapse file

‎src/Intl/Icu/composer.json‎

Copy file name to clipboardExpand all lines: src/Intl/Icu/composer.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": ">=5.3.3",
20-
"symfony/intl": "~2.8|~3.0"
20+
"symfony/intl": "~2.3|~3.0"
2121
},
2222
"autoload": {
2323
"files": [ "bootstrap.php" ]
Collapse file

‎src/Php54/composer.json‎

Copy file name to clipboardExpand all lines: src/Php54/composer.json
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=5.3.3",
20-
"symfony/polyfill-php55": "~1.0"
19+
"php": ">=5.3.3"
2120
},
2221
"autoload": {
2322
"psr-4": { "Symfony\\Polyfill\\Php54\\": "" },
Collapse file

‎src/Php55/composer.json‎

Copy file name to clipboardExpand all lines: src/Php55/composer.json
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
],
1818
"require": {
1919
"php": ">=5.3.3",
20-
"ircmaxell/password-compat": "~1.0",
21-
"symfony/polyfill-php56": "~1.0"
20+
"ircmaxell/password-compat": "~1.0"
2221
},
2322
"autoload": {
2423
"psr-4": { "Symfony\\Polyfill\\Php55\\": "" },
Collapse file

‎src/Php56/composer.json‎

Copy file name to clipboardExpand all lines: src/Php56/composer.json
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
],
1818
"require": {
1919
"php": ">=5.3.3",
20-
"symfony/polyfill-util": "~1.0",
21-
"symfony/polyfill-php70": "~1.0"
20+
"symfony/polyfill-util": "~1.0"
2221
},
2322
"autoload": {
2423
"psr-4": { "Symfony\\Polyfill\\Php56\\": "" },
Collapse file

‎src/Php70/Php70.php‎

Copy file name to clipboardExpand all lines: src/Php70/Php70.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ public static function intArg($value, $caller, $pos)
6161
if (is_int($value)) {
6262
return $value;
6363
}
64-
if (!is_numeric($value) || PHP_INT_MAX <= $value || ~PHP_INT_MAX >= $value) {
64+
if (!is_numeric($value) || PHP_INT_MAX <= ($value += 0) || ~PHP_INT_MAX >= $value) {
6565
throw new \TypeError(sprintf('%s() expects parameter %d to be integer, %s given', $caller, $pos, gettype($value)));
6666
}
6767

68-
return (int) $value += 0;
68+
return (int) $value;
6969
}
7070
}
Collapse file

‎src/Php70/composer.json‎

Copy file name to clipboardExpand all lines: src/Php70/composer.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=5.3.3"
19+
"php": ">=5.3.3",
20+
"paragonie/random_compat": "~1.0"
2021
},
2122
"autoload": {
2223
"psr-4": { "Symfony\\Polyfill\\Php70\\": "" },
Collapse file

‎tests/Iconv/IconvTest.php‎

Copy file name to clipboardExpand all lines: tests/Iconv/IconvTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function testIconvMimeDecode()
101101
{
102102
$this->assertSame('Legal encoded-word: * .', iconv_mime_decode('Legal encoded-word: =?utf-8?B?Kg==?= .'));
103103
$this->assertSame('Legal encoded-word: * .', iconv_mime_decode('Legal encoded-word: =?utf-8?Q?*?= .'));
104-
if (!defined('HHVM_VERSION')) {
104+
if (!defined('HHVM_VERSION') && '\\' !== DIRECTORY_SEPARATOR) {
105105
$this->assertSame('Illegal encoded-word: .', iconv_mime_decode('Illegal encoded-word: =?utf-8?Q??= .', ICONV_MIME_DECODE_CONTINUE_ON_ERROR));
106106
$this->assertSame('Illegal encoded-word: .', iconv_mime_decode('Illegal encoded-word: =?utf-8?Q?'.chr(0xA1).'?= .', ICONV_MIME_DECODE_CONTINUE_ON_ERROR));
107107
}
Collapse file

‎tests/Mbstring/MbstringTest.php‎

Copy file name to clipboardExpand all lines: tests/Mbstring/MbstringTest.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ public function testStrCase()
6363
{
6464
$this->assertSame('déjà σσς iiıi', mb_strtolower('DÉJÀ Σσς İIıi'));
6565
$this->assertSame('DÉJÀ ΣΣΣ İIII', mb_strtoupper('Déjà Σσς İIıi'));
66-
$this->assertSame('Déjà Σσσ Iı Ii İi', mb_convert_case('DÉJÀ ΣΣΣ ıı iI İİ', MB_CASE_TITLE));
66+
if (PCRE_VERSION >= '8.10') {
67+
$this->assertSame('Déjà Σσσ Iı Ii İi', mb_convert_case('DÉJÀ ΣΣΣ ıı iI İİ', MB_CASE_TITLE));
68+
}
6769
}
6870

6971
/**

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.