Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.11.5

Bug #9755 when DB connection failed, function setOption is undefined
Submitted: 2007-01-06 16:40 UTC
From: aurelien0306 at users dot sourceforge dot net Assigned: alan_k
Status: Closed Package: DB_DataObject (version 1.8.5)
PHP Version: 4.4.2 OS: Windows
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 49 + 40 = ?

 
 [2007-01-06 16:40 UTC] aurelien0306 at users dot sourceforge dot net (Nelero)
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 />

Comments

 [2007-01-09 04:41 UTC] alan_k (Alan Knowles)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.