svn: /pear/packages/PHP_CodeSniffer/trunk/ CodeSniffer.php package.xml
| From: | Greg Sherwood | Date: | Sun, 06 Mar 2011 21:54:08 +0000 |
| Subject: | svn: /pear/packages/PHP_CodeSniffer/trunk/ CodeSniffer.php package.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-61357@lists.php.net to get a copy of this message | ||
squiz Sun, 06 Mar 2011 21:54:08 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=308981
Log:
Fixed bug #18336 : Function isUnderscoreName gives php notices
Bug: http://pear.php.net/bugs/18336 (unknown)
Changed paths:
U pear/packages/PHP_CodeSniffer/trunk/CodeSniffer.php
U pear/packages/PHP_CodeSniffer/trunk/package.xml
Modified: pear/packages/PHP_CodeSniffer/trunk/CodeSniffer.php
===================================================================
--- pear/packages/PHP_CodeSniffer/trunk/CodeSniffer.php 2011-03-06 21:47:46 UTC (rev 308980)
+++ pear/packages/PHP_CodeSniffer/trunk/CodeSniffer.php 2011-03-06 21:54:08 UTC (rev 308981)
@@ -1649,6 +1649,10 @@
$validName = false;
} else {
foreach ($nameBits as $bit) {
+ if ($bit === '') {
+ continue;
+ }
+
if ($bit{0} !== strtoupper($bit{0})) {
$validName = false;
break;
Modified: pear/packages/PHP_CodeSniffer/trunk/package.xml
===================================================================
--- pear/packages/PHP_CodeSniffer/trunk/package.xml 2011-03-06 21:47:46 UTC (rev 308980)
+++ pear/packages/PHP_CodeSniffer/trunk/package.xml 2011-03-06 21:54:08 UTC (rev 308981)
@@ -40,6 +40,7 @@
- Fixed bug #18274 : Multi-line IF and function call indent rules conflict
- Fixed bug #18282 : Squiz doesn't handle final keyword before function comments
-- Thanks to Dave Perrett for the patch
+ - Fixed bug #18336 : Function isUnderscoreName gives php notices
</notes>
<contents>
<dir name="/">