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 #6442

Validate null value DB_DataObject_Cast problem

Details

Submitted2006-01-08 02:17 UTC
Fromcar at cespi dot unlp dot edu dot ar
Assignedalan_k
StatusClosed
PackageDB_DataObject
PHP Version5.0.5
OSAny
Roadmaps(Not assigned)

Comments

[2006-01-08 02:17 UTC] car at cespi dot unlp dot edu dot ar

Description:
------------
Before I upraded to stable version 1.8 I had the same problem but now it seems to be partially solved.
On line 3422 of the DB_DataObject.php source there is a validation rule inside an if statement. The problem there is that it uses a $value var that it is not defined.
So I propose to change the code from:

if(is_object($this->$key)&&is_a($value,'DB_DataObject_Cast'))

to:

if(is_object($this->$key)&&is_a($this->$key,'DB_DataObject_Cast'))

It works for me