Home » Database » DB_DataObject_FormBuilder » Bug #1876
code generates warnings with E_ALL
Details
| Submitted | 2004-07-14 19:00 UTC |
|---|---|
| From | jsnell at networkninja dot com |
| Assigned | mw21st |
| Status | Bogus |
| Package | DB_DataObject_FormBuilder |
| PHP Version | 4.3.3 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-07-14 19:00 UTC] jsnell at networkninja dot com
Description:
------------
FormBuilder won't work with all error_level settings. I will likely fix this and submit a patch.
Reproduce code:
---------------
set error level to E_ALL, then enter an example in
Expected result:
----------------
No warnings under E_ALL
Actual result:
--------------
Notice: Undefined property: preDefOrder in /usr/local/lib/php/DB/DataObject/FormBuilder.php on line 411
Notice: Undefined property: preDefGroups in /usr/local/lib/php/DB/DataObject/FormBuilder.php on line 274
Notice: Undefined variable: element in /usr/local/lib/php/DB/DataObject/FormBuilder.php on line 345
Notice: Undefined property: dateFields in /usr/local/lib/php/DB/DataObject/FormBuilder.php on line 289
Notice: Undefined property: dateFields in /usr/local/lib/php/DB/DataObject/FormBuilder.php on line 289
Notice: Undefined variable: groups in /usr/local/lib/php/DB/DataObject/FormBuilder.php on line 375
[2004-07-14 23:01 UTC] jsnell at networkninja dot com
It seems that "pear install DB_DataObject_FormBuilder" (done on Monday) gave me an older version, although I have no way to verify it. Using pear to upgrade fixed the problem. Sorry to bother you, but thank you for this excellent class. I'm working on something similar to use DB_DataObject with Pager (looks like I'll probably end up writing my own paging code).