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

Bug #7740 Notice when using replace()
Submitted: 2006-05-28 20:26 UTC
From: stoyan Assigned: lsmith
Status: Closed Package: MDB2 (version 2.0.3)
PHP Version: 5.0.5 OS: windows
Roadmaps: (Not assigned)    
Subscription  


 [2006-05-28 20:26 UTC] stoyan (Stoyan)
Description: ------------ Using replace() method without specifying the 'type' property of the field throws a notice: Notice: Undefined index: type in d:\xampp\xampp\php\pear\MDB2\Driver\mysql.php on line 811 Test script: --------------- $table = 'people'; $fields = array ( 'id' => array( 'value' => 1, 'key' => true ), 'name' => array( 'value' => 'Stoyan' ) ); $mdb2->replace($table, $fields);

Comments

 [2006-05-29 06:51 UTC] lsmith (Lukas Smith)
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.