DB_DataObject_FormBuilder: Silent failures OK?
| From: | philip reed | Date: | Thu, 02 Mar 2006 21:24:41 +0000 |
| Subject: | DB_DataObject_FormBuilder: Silent failures OK? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-23205@lists.php.net to get a copy of this message | ||
I'm a bit new to PEAR so forgive me if this question is somehow naive
or out of tune with the PEAR development culture.
I tried to install DB_DataObject_FormBuilder, but I neglected to
install all the dependencies. (I knew I needed to install them,
since I can't get the PEAR autoinstaller to work, but I just forgot to
install HTML_QuickForm.) I then tried to run the following harness
code, pretty much taken from the DB_DataObject_FormBuilder doc adapted
to one of my class names:
error_reporting(E_ALL);
echo "Hello";
$teacher =& new DataObjects_Posi_teachers();
$form =& DB_DataObject_FormBuilder::create($teacher);
The resulting HTML looked like this:
Hello
Or, within the content of the HTML page that was including the above PHP:
<div style='margin:auto;'>Hello
That's it -- no error message of any sort.
Is it standard practice for PEAR packages to fail silently when
they're misinstalled? Would it be legitimate to submit a patch for
this, or is a silent failure to be expected in this case?
Incidentally, once I installed HTML_Common and HTML_QuickForm
everything worked. I just find it surprising that a mature PEAR
package wouldn't point me to the cause of the failure.
Thanks,
Philip
--
Philip Reed, Developer
Positronic Design
http://www.positronicdesign.com