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  
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 : 37 - 27 = ?

 
 [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] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!