small patch to DB/common.php
| From: | Brad Bulger | Date: | Fri, 25 Jul 2003 08:24:56 +0000 |
| Subject: | small patch to DB/common.php | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-18677@lists.php.net to get a copy of this message | ||
php 5 does not allow 'return new FooClass;' from a method
declared as returning a reference ('function &getMyFoo()').
DB does this in a couple places. The patch just changes it
to do
$dbr =& new Whatever;
return $dbr;