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

PHP5 get/set warning triggering for internal get/set calls

Details

Submitted2006-09-27 18:07 UTC
Frompear at cmoller dot endjunk dot com
StatusBogus
PackageDB_DataObject
PHP Version5.0.4
OSRHEL
Roadmaps(Not assigned)

Comments

[2006-09-27 18:07 UTC] pear at cmoller dot endjunk dot com

Description:
------------
In DataObject.php line 3623 the following line triggers an error whenever a get or a set call is made using different case than the variable getting or setting.

if ((substr(phpversion(),0,1) == 5) && isset($case[strtolower($element)])) {
trigger_error("PHP5 set/get calls should match the case of the variable", params=$params",E_USER_WARNING);
$element = strtolower($element);
}

I have fixed up all my get/set calls to make sure they are all lowercase and the error is still triggering. I have investigated and discovered that this is triggering on internal get/set calls like set_db_dataobject_version, setn,set_db_resultid, set_resultfields, and set_lasterror.

Can you either fix this issue or remove the warning completely?

[2006-09-28 17:30 UTC] pear at cmoller dot endjunk dot com

My fault. It was me making those calls after when looping through all the properties of the dataobject.