Re: cvs: pear /Auth/Container DB.php
| From: | Martin Jansen | Date: | Mon, 30 Aug 2004 09:50:25 +0000 |
| Subject: | Re: cvs: pear /Auth/Container DB.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-23495@lists.php.net to get a copy of this message | ||
On Mon Aug 30, 2004 at 09:3450AM -0000, Yavor Shahpasov wrote:
> - } elseif (strtolower(get_parent_class($dsn)) == "db_common") {
> + } elseif (is_a($dsn, 'db_common')) {
Wouldn't it be better to use is_subclass_of() here? Is_a() is
deprecated in PHP 5.
--
- Martin Martin Jansen
http://martinjansen.com/