@@ -14,8 +14,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
14
14
15
15
<active >yes</active >
16
16
</lead >
17
- <date >2017-02 -02</date >
18
- <time >14:50 :00</time >
17
+ <date >2017-03 -02</date >
18
+ <time >09:30 :00</time >
19
19
<version >
20
20
<release >3.0.0RC4</release >
21
21
<api >3.0.0RC4</api >
@@ -1533,6 +1533,47 @@ http://pear.php.net/dtd/package-2.0.xsd">
1533
1533
</filelist >
1534
1534
</phprelease >
1535
1535
<changelog >
1536
+ <release >
1537
+ <version >
1538
+ <release >3.0.0RC4</release >
1539
+ <api >3.0.0RC4</api >
1540
+ </version >
1541
+ <stability >
1542
+ <release >beta</release >
1543
+ <api >beta</api >
1544
+ </stability >
1545
+ <date >2017-03-02</date >
1546
+ <license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD License</license >
1547
+ <notes >
1548
+ - This release contains a fix for a security advisory related to the improper handling of shell commands
1549
+ -- Uses of shell_exec() and exec() were not escaping filenames and configuration settings in most cases
1550
+ -- A properly crafted filename or configuration option would allow for arbitrary code execution when using some features
1551
+ -- All users are encouraged to upgrade to this version, especially if you are checking 3rd-party code
1552
+ --- e.g., you run PHPCS over libraries that you did not write
1553
+ --- e.g., you provide a web service that runs PHPCS over user-uploaded files or 3rd-party repositories
1554
+ --- e.g., you allow external tool paths to be set by user-defined values
1555
+ -- If you are unable to upgrade but you check 3rd-party code, ensure you are not using the following features:
1556
+ --- The diff report
1557
+ --- The notify-send report
1558
+ --- The Generic.PHP.Syntax sniff
1559
+ --- The Generic.Debug.CSSLint sniff
1560
+ --- The Generic.Debug.ClosureLinter sniff
1561
+ --- The Generic.Debug.JSHint sniff
1562
+ --- The Squiz.Debug.JSLint sniff
1563
+ --- The Squiz.Debug.JavaScriptLint sniff
1564
+ --- The Zend.Debug.CodeAnalyzer sniff
1565
+ -- Thanks to Klaus Purer for the report
1566
+
1567
+ - The indent property of PEAR.Classes.ClassDeclaration has been removed
1568
+ -- Instead of calculating the indent of the brace, it just ensures the brace is aligned with the class keyword
1569
+ -- Other sniffs can be used to ensure the class itself is indented correctly
1570
+ - Invalid exclude rules inside a ruleset.xml file are now ignored instead of potentially causing out of memory errors
1571
+ -- Using the -vv command line argument now also shows the invalid exclude rule as XML
1572
+ - Includes all changes from the 2.8.1 release
1573
+ - Fixed bug #1333 : The new autoloader breaks some frameworks with custom autoloaders
1574
+ - Fixed bug #1334 : Undefined offset when explaining standard with custom sniffs
1575
+ </notes >
1576
+ </release >
1536
1577
<release >
1537
1578
<version >
1538
1579
<release >3.0.0RC3</release >
@@ -1702,6 +1743,61 @@ http://pear.php.net/dtd/package-2.0.xsd">
1702
1743
-- Hooks for version control systems will no longer be maintained within the PHPCS project
1703
1744
</notes >
1704
1745
</release >
1746
+ <release >
1747
+ <version >
1748
+ <release >2.8.1</release >
1749
+ <api >2.8.1</api >
1750
+ </version >
1751
+ <stability >
1752
+ <release >stable</release >
1753
+ <api >stable</api >
1754
+ </stability >
1755
+ <date >2017-03-02</date >
1756
+ <license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD License</license >
1757
+ <notes >
1758
+ - This release contains a fix for a security advisory related to the improper handling of shell commands
1759
+ -- Uses of shell_exec() and exec() were not escaping filenames and configuration settings in most cases
1760
+ -- A properly crafted filename or configuration option would allow for arbitrary code execution when using some features
1761
+ -- All users are encouraged to upgrade to this version, especially if you are checking 3rd-party code
1762
+ --- e.g., you run PHPCS over libraries that you did not write
1763
+ --- e.g., you provide a web service that runs PHPCS over user-uploaded files or 3rd-party repositories
1764
+ --- e.g., you allow external tool paths to be set by user-defined values
1765
+ -- If you are unable to upgrade but you check 3rd-party code, ensure you are not using the following features:
1766
+ --- The diff report
1767
+ --- The notify-send report
1768
+ --- The Generic.PHP.Syntax sniff
1769
+ --- The Generic.Debug.CSSLint sniff
1770
+ --- The Generic.Debug.ClosureLinter sniff
1771
+ --- The Generic.Debug.JSHint sniff
1772
+ --- The Squiz.Debug.JSLint sniff
1773
+ --- The Squiz.Debug.JavaScriptLint sniff
1774
+ --- The Zend.Debug.CodeAnalyzer sniff
1775
+ -- Thanks to Klaus Purer for the report
1776
+
1777
+
1778
+ - The PHP-supplied T_COALESCE_EQUAL token has been replicated for PHP versions before 7.2
1779
+ - PEAR.Functions.FunctionDeclaration now reports an error for blank lines found inside a function declaration
1780
+ - PEAR.Functions.FunctionDeclaration no longer reports indent errors for blank lines in a function declaration
1781
+ - Squiz.Functions.MultiLineFunctionDeclaration no longer reports errors for blank lines in a function declaration
1782
+ -- It would previously report that only one argument is allowed per line
1783
+ - Squiz.Commenting.FunctionComment now corrects multi-line param comment padding more accurately
1784
+ - Squiz.Commenting.FunctionComment now properly fixes pipe-separated param types
1785
+ - Squiz.Commenting.FunctionComment now works correctly when function return types also contain a comment
1786
+ -- Thanks to Juliette Reinders Folmer for the patch
1787
+ - Squiz.ControlStructures.InlineIfDeclaration now supports the elvis operator
1788
+ -- As this is not a real PHP operator, it enforces no spaces between ? and : when the THEN statement is empty
1789
+ - Squiz.ControlStructures.InlineIfDeclaration is now able to fix the spacing errors it reports
1790
+ - Fixed bug #1340 : STDIN file contents not being populated in some cases
1791
+ -- Thanks to David Biňovec for the patch
1792
+ - Fixed bug #1344 : PEAR.Functions.FunctionCallSignatureSniff throws error for blank comment lines
1793
+ - Fixed bug #1347 : PSR2.Methods.FunctionCallSignature strips some comments during fixing
1794
+ -- Thanks to Algirdas Gurevicius for the patch
1795
+ - Fixed bug #1349 : Squiz.Strings.DoubleQuoteUsage.NotRequired message is badly formatted when string contains a CR newline char
1796
+ -- Thanks to Algirdas Gurevicius for the patch
1797
+ - Fixed bug #1350 : Invalid Squiz.Formatting.OperatorBracket error when using namespaces
1798
+ - Fixed bug #1369 : Empty line in multi-line function declaration cause infinite loop
1799
+ </notes >
1800
+ </release >
1705
1801
<release >
1706
1802
<version >
1707
1803
<release >2.8.0</release >
0 commit comments