PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_DataObject » Bug #9755

when DB connection failed, function setOption is undefined

Details

Submitted2007-01-06 16:40 UTC
Fromaurelien0306 at users dot sourceforge dot net
Assignedalan_k
StatusClosed
PackageDB_DataObject
PHP Version4.4.2
OSWindows
Roadmaps(Not assigned)

Comments

[2007-01-06 16:40 UTC] aurelien0306 at users dot sourceforge dot net

Description:
------------
When mysql instance is stopped (i've forgotten to start it), Generator.php made this error :
Call to undefined function: setoption() in DB/DataObject/Generator.php on line 193

(I use MDB2 for my DB connection)
When i start my mysql instance, no error and generator.php succeeded.

Actual result:
--------------
<code><font color="red"><B>db_dataobject_generator: 0:</B> CREATING FOR test_site<br />
</font></code><BR>
<code><font><B>db_dataobject_generator: CONNECT:</B> NEW CONNECTION</font></code><BR>
<code><font><B>db_dataobject_generator: CONNECT:</B> mysql://root@localhost/test_site ea3c0c3e2dc94d62b5b7fe0e310c1efd</font></code><BR>
<code><font color="red"><B>db_dataobject_generator: ERROR:</B> Connect failed, turn on debugging to 5 see why</font></code><BR>
<br />
<b>Fatal error</b>: Call to undefined function: setoption() in <b>C:\web\include\DB\DataObject\Generator.php</b> on line <b>193</b><br />