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

Bug #4760 DB_DataObject_Cast fails on blob insert.
Submitted: 2005-07-06 19:32 UTC
From: einurech at bluewin dot ch Assigned: alan_k
Status: Closed Package: DB_DataObject
PHP Version: Irrelevant OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  


 [2005-07-06 19:32 UTC] einurech at bluewin dot ch
Description: ------------ version 1.7.14 Trying an $object->insert() which has a DB_DataObject_Cast::blob($s) property fails, error message: Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in D:\svn\dfc\gym\trunk\pear\DB\DataObject\Cast.php on line 392 The code worked well in the last release 1.7.13. Reproduce code: --------------- I found the error being caused by an empty $DB object (caused by a typo?) in function toStringFromBlob() and function toStringFromString() Lines 388, 392, 432, 436 should use $db->connection instead of $DB->connection

Comments

 [2005-07-07 05:32 UTC] alan_k
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. thanks