Skip to content

Commit

Permalink
Correct case-insensitive check for vendor namespace of PEAR2.
Browse files Browse the repository at this point in the history
  • Loading branch information
saltybeagle committed Jun 28, 2010
1 parent 1ab1baa commit 331f6ea
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 2 additions & 0 deletions RELEASE-0.2.1
@@ -0,0 +1,2 @@
Bugfix Release:
* Correct case-insensitive check for vendor namespace of PEAR2 [saltybeagle]
9 changes: 5 additions & 4 deletions package.xml
Expand Up @@ -27,18 +27,19 @@ require '/path/to/PEAR2/Autoload.php';
<email>saltybeagle@php.net</email> <email>saltybeagle@php.net</email>
<active>yes</active> <active>yes</active>
</lead> </lead>
<date>2010-05-23</date> <date>2010-06-28</date>
<time>08:34:10</time> <time>14:16:16</time>
<version> <version>
<release>0.2.0</release> <release>0.2.1</release>
<api>0.1.0</api> <api>0.1.0</api>
</version> </version>
<stability> <stability>
<release>alpha</release> <release>alpha</release>
<api>alpha</api> <api>alpha</api>
</stability> </stability>
<license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license> <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> <contents>
<dir name="/"> <dir name="/">
<dir name="src" baseinstalldir="PEAR2"> <dir name="src" baseinstalldir="PEAR2">
Expand Down
9 changes: 5 additions & 4 deletions package_compatible.xml
Expand Up @@ -27,18 +27,19 @@ require '/path/to/PEAR2/Autoload.php';
<email>saltybeagle@php.net</email> <email>saltybeagle@php.net</email>
<active>yes</active> <active>yes</active>
</lead> </lead>
<date>2010-05-23</date> <date>2010-06-28</date>
<time>08:34:10</time> <time>14:16:16</time>
<version> <version>
<release>0.2.0</release> <release>0.2.1</release>
<api>0.1.0</api> <api>0.1.0</api>
</version> </version>
<stability> <stability>
<release>alpha</release> <release>alpha</release>
<api>alpha</api> <api>alpha</api>
</stability> </stability>
<license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license> <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> <contents>
<dir name="/"> <dir name="/">
<file role="php" name="php/PEAR2/Autoload.php"/> <file role="php" name="php/PEAR2/Autoload.php"/>
Expand Down
2 changes: 1 addition & 1 deletion src/Autoload.php
Expand Up @@ -77,7 +77,7 @@ protected static function addPath($path)
*/ */
static function load($class) static function load($class)
{ {
if (strtolower(substr($class, 0, 6)) !== 'PEAR2\\') { if (strtolower(substr($class, 0, 6)) !== 'pear2\\') {
return false; return false;
} }
$file = str_replace(array('_', '\\'), DIRECTORY_SEPARATOR, $class) . '.php'; $file = str_replace(array('_', '\\'), DIRECTORY_SEPARATOR, $class) . '.php';
Expand Down

0 comments on commit 331f6ea

Please sign in to comment.