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

DB_DataObject throwing E_NOTICE

Details

Request #1923DB_DataObject throwing E_NOTICE
Submitted2004-07-20 11:29 UTC
Frompascalthuet at altern dot org
StatusClosed
PackageDB_DataObject
PHP Version4.3.7
OSlinux
Roadmaps(Not assigned)

Comments

[2004-07-20 11:29 UTC] pascalthuet at altern dot org

Description:
------------
Is it possible to replace all the @ error control symbol by an isset() function, by checking if a variable or an array is defined ?

e.g

In DB_DataObject.php line 1799
if (@$_DB_DATAOBJECT['CONFIG']['sequence_'.$this->__table]) {

}

can be replaced by

if(isset($_DB_DATAOBJECT['CONFIG']['sequence_'.$this->__table]) {

}

This could prevent a E_NOTICE error to be throwed and intercepted by a custom error handler.

By the way, thank you very much for this great library