Did DataObject.php rev 1.112 break class loading?
| From: | mitchell perilstein | Date: | Wed, 30 Jul 2003 16:48:35 +0000 |
| Subject: | Did DataObject.php rev 1.112 break class loading? | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-18962@lists.php.net to get a copy of this message | ||
Hi guys,
Rev 1.112 added this
$class = strtolower($class);
to staticGet() with the CVS comment about fixing cache clearing. Well,
for me, anyway, it broke class loading.
If I have DB table MyFooTable, the generator will create MyFooTable.php
which will hold class DataObjects_MyFooTable. All as expected.
But then the autoloader tries to load Myfootable.php in the else part of
_autoloadClass. Is this expected behavior?
Removing the strtolower in staticGet fixes this problem, at least.
(probably unfixes the 1.112 bug though... :-)
Thanks,
--
Mitchell Perilstein
mitch at enetis dot net
www.enetis.net/~mitch