Home » Database » DB_DataObject_FormBuilder » Bug #10121
Incorrect usage of PEAR::raiseError()
Details
| Submitted | 2007-02-19 04:53 UTC |
|---|---|
| From | dsanders at baselinesolutions dot com dot au |
| Status | Wont fix |
| Package | DB_DataObject_FormBuilder |
| PHP Version | 5.2.1 |
| OS | Irrelevant |
| 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