PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_DataObject » Bug #2330

Notice on line 3468

Details

Submitted2004-09-14 16:50 UTC
Frombrandon at osuosl dot org
Assignedalan_k
StatusClosed
PackageDB_DataObject
PHP Version5.0.1
OSDebian Unstable
Roadmaps(Not assigned)

Comments

[2004-09-14 16:50 UTC] brandon at osuosl dot org

Description:
------------
If you use a static function and there is an error a notice is also thrown for $this being undefined.

On line 3468 change

(@is_object($this) && is_subclass_of($this,'db_dataobject'))

to

(isset($this) && is_object($this) && is_subclass_of($this,'db_dataobject'))

Thanks again.

Reproduce code:
---------------
DB_DataObject::factory('NON_EXISTANT_TABLE_FOO');