PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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');