svn: /pear2/Autoload/trunk/ RELEASE-0.1.0 RELEASE-0.1.1 package.xml package_compatible.xml src/Autoload.php

From: Date: Tue, 16 Mar 2010 19:28:21 +0000
Subject: svn: /pear2/Autoload/trunk/ RELEASE-0.1.0 RELEASE-0.1.1 package.xml package_compatible.xml src/Autoload.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9308@lists.php.net to get a copy of this message
saltybeagle Tue, 16 Mar 2010 19:28:21 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=296288 Log: Allow any case of pear2 prefix, prep for 0.1.1 release Changed paths: D pear2/Autoload/trunk/RELEASE-0.1.0 A + pear2/Autoload/trunk/RELEASE-0.1.1 (from pear2/Autoload/trunk/RELEASE-0.1.0:r296245) U pear2/Autoload/trunk/package.xml U pear2/Autoload/trunk/package_compatible.xml U pear2/Autoload/trunk/src/Autoload.php Deleted: pear2/Autoload/trunk/RELEASE-0.1.0 =================================================================== --- pear2/Autoload/trunk/RELEASE-0.1.0 2010-03-16 18:55:51 UTC (rev 296287) +++ pear2/Autoload/trunk/RELEASE-0.1.0 2010-03-16 19:28:21 UTC (rev 296288) @@ -1 +0,0 @@ -Initial Release \ No newline at end of file Copied: pear2/Autoload/trunk/RELEASE-0.1.1 (from rev 296245, pear2/Autoload/trunk/RELEASE-0.1.0) =================================================================== --- pear2/Autoload/trunk/RELEASE-0.1.1 (rev 0) +++ pear2/Autoload/trunk/RELEASE-0.1.1 2010-03-16 19:28:21 UTC (rev 296288) @@ -0,0 +1,2 @@ +Allow any combination of PEAR2 prefix case. +This will help during the transition from pear2 to PEAR2. Modified: pear2/Autoload/trunk/package.xml =================================================================== --- pear2/Autoload/trunk/package.xml 2010-03-16 18:55:51 UTC (rev 296287) +++ pear2/Autoload/trunk/package.xml 2010-03-16 19:28:21 UTC (rev 296288) @@ -27,10 +27,10 @@ <email>saltybeagle@php.net</email> <active>yes</active> </lead> - <date>2009-12-13</date> - <time>08:13:47</time> + <date>2010-03-16</date> + <time>14:27:37</time> <version> - <release>0.1.0</release> + <release>0.1.1</release> <api>0.1.0</api> </version> <stability> @@ -38,7 +38,9 @@ <api>alpha</api> </stability> <license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license> - <notes>Initial Release</notes> + <notes>Allow any combination of PEAR2 prefix case. +This will help during the transition from pear2 to PEAR2. +</notes> <contents> <dir name="/"> <dir name="src" baseinstalldir="pear2"> Modified: pear2/Autoload/trunk/package_compatible.xml =================================================================== --- pear2/Autoload/trunk/package_compatible.xml 2010-03-16 18:55:51 UTC (rev 296287) +++ pear2/Autoload/trunk/package_compatible.xml 2010-03-16 19:28:21 UTC (rev 296288) @@ -27,10 +27,10 @@ <email>saltybeagle@php.net</email> <active>yes</active> </lead> - <date>2009-12-13</date> - <time>08:13:47</time> + <date>2010-03-16</date> + <time>14:27:37</time> <version> - <release>0.1.0</release> + <release>0.1.1</release> <api>0.1.0</api> </version> <stability> @@ -38,7 +38,9 @@ <api>alpha</api> </stability> <license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license> - <notes>Initial Release</notes> + <notes>Allow any combination of PEAR2 prefix case. +This will help during the transition from pear2 to PEAR2. +</notes> <contents> <dir name="/"> <file role="php" name="php/pear2/Autoload.php"/> Modified: pear2/Autoload/trunk/src/Autoload.php =================================================================== --- pear2/Autoload/trunk/src/Autoload.php 2010-03-16 18:55:51 UTC (rev 296287) +++ pear2/Autoload/trunk/src/Autoload.php 2010-03-16 19:28:21 UTC (rev 296288) @@ -77,7 +77,7 @@ */ static function load($class) { - if (substr($class, 0, 6) !== 'pear2\\') { + if (strtolower(substr($class, 0, 6)) !== 'pear2\\') { return false; } $file = str_replace(array('_', '\\'), DIRECTORY_SEPARATOR, $class) . '.php'; @@ -88,13 +88,13 @@ if (!class_exists($class, false) && !interface_exists($class, false)) { die(new \Exception('Class ' . $class . ' was not present in ' . $file . ' (include_path="' . get_include_path() . - '") [PEAR2_Autoload version 1.0]')); + '") [PEAR2_Autoload version 1.1]')); } return true; } $e = new \Exception('Class ' . $class . ' could not be loaded from ' . $file . ', file does not exist (include_path="' . get_include_path() . - '") [PEAR2_Autoload version 1.0]'); + '") [PEAR2_Autoload version 1.1]'); $trace = $e->getTrace(); if (isset($trace[2]) && isset($trace[2]['function']) && in_array($trace[2]['function'], array('class_exists', 'interface_exists'))) {

« previous php.pear.core (#9308) next »