PEAR is archived and read-only

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

Home » Database » DB_DataObject_FormBuilder » Bug #10121

Incorrect usage of PEAR::raiseError()

Details

Submitted2007-02-19 04:53 UTC
Fromdsanders at baselinesolutions dot com dot au
StatusWont fix
PackageDB_DataObject_FormBuilder
PHP Version5.2.1
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2007-02-19 04:53 UTC] dsanders at baselinesolutions dot com dot au

Description:
------------
raiseDoError() passes a dataobject to raiseError() where a string is expected

Test script:
---------------
Any kind of script that would force formbuilder to call raiseDoError(). In my case I manually returned false from an update() in my dataobject (called DO_Facility).

Expected result:
----------------
No errors

Actual result:
--------------
Catchable fatal error: Object of class DO_Facility could not be converted to string in /Users/pb/projects/oms_core/pear/PEAR.php on line 1076

[2007-02-19 05:21 UTC] dsanders at baselinesolutions dot com dot au

My version of pear is 1.5.0

Here's the phpdoc for the latest. ;)
http://pear.php.net/package/PEAR/docs/latest/PEAR/PEAR.html#methodraiseError