Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correct case-insensitive check for vendor namespace of PEAR2.

  • Loading branch information...
commit 331f6eae4330e4eb0624c35fc100396576c1bddf 1 parent 1ab1baa
@saltybeagle saltybeagle authored
View
2  RELEASE-0.2.1
@@ -0,0 +1,2 @@
+Bugfix Release:
+* Correct case-insensitive check for vendor namespace of PEAR2 [saltybeagle]
View
9 package.xml
@@ -27,10 +27,10 @@ require '/path/to/PEAR2/Autoload.php';
<email>saltybeagle@php.net</email>
<active>yes</active>
</lead>
- <date>2010-05-23</date>
- <time>08:34:10</time>
+ <date>2010-06-28</date>
+ <time>14:16:16</time>
<version>
- <release>0.2.0</release>
+ <release>0.2.1</release>
<api>0.1.0</api>
</version>
<stability>
@@ -38,7 +38,8 @@ require '/path/to/PEAR2/Autoload.php';
<api>alpha</api>
</stability>
<license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license>
- <notes>Convert namespace from pear2 to PEAR2</notes>
+ <notes>Bugfix Release:
+* Correct case-insensitive check for vendor namespace of PEAR2 [saltybeagle]</notes>
<contents>
<dir name="/">
<dir name="src" baseinstalldir="PEAR2">
View
9 package_compatible.xml
@@ -27,10 +27,10 @@ require '/path/to/PEAR2/Autoload.php';
<email>saltybeagle@php.net</email>
<active>yes</active>
</lead>
- <date>2010-05-23</date>
- <time>08:34:10</time>
+ <date>2010-06-28</date>
+ <time>14:16:16</time>
<version>
- <release>0.2.0</release>
+ <release>0.2.1</release>
<api>0.1.0</api>
</version>
<stability>
@@ -38,7 +38,8 @@ require '/path/to/PEAR2/Autoload.php';
<api>alpha</api>
</stability>
<license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license>
- <notes>Convert namespace from pear2 to PEAR2</notes>
+ <notes>Bugfix Release:
+* Correct case-insensitive check for vendor namespace of PEAR2 [saltybeagle]</notes>
<contents>
<dir name="/">
<file role="php" name="php/PEAR2/Autoload.php"/>
View
2  src/Autoload.php
@@ -77,7 +77,7 @@ protected static function addPath($path)
*/
static function load($class)
{
- if (strtolower(substr($class, 0, 6)) !== 'PEAR2\\') {
+ if (strtolower(substr($class, 0, 6)) !== 'pear2\\') {
return false;
}
$file = str_replace(array('_', '\\'), DIRECTORY_SEPARATOR, $class) . '.php';
Please sign in to comment.
Something went wrong with that request. Please try again.