Home » Database » DB_DataObject » Bug #1923
DB_DataObject throwing E_NOTICE
Details
| Request #1923 | DB_DataObject throwing E_NOTICE |
|---|---|
| Submitted | 2004-07-20 11:29 UTC |
| From | pascalthuet at altern dot org |
| Status | Closed |
| Package | DB_DataObject |
| PHP Version | 4.3.7 |
| OS | linux |
| 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