Bug #17287 [Opn->Bgs]: failed to insert gzcompress()ed values into field

From: Date: Wed, 24 Oct 2012 15:36:23 +0000
Subject: Bug #17287 [Opn->Bgs]: failed to insert gzcompress()ed values into field
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-9221@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=17287&edit=1 ID: 17287 Updated by: danielc@analysisandsolutions.com Reported By: afanstudio at gmail dot com Summary: failed to insert gzcompress()ed values into field -Status: Open +Status: Bogus Type: Bug Package: MDB2 Operating System: Irrelevant Package Version: 2.5.0b2 PHP Version: Irrelevant -Assigned To: +Assigned To: danielc Roadmap Versions: New Comment: -Status: Open +Status: Bogus -Assigned To: +Assigned To: danielc MDB2 unit tests insert binary data just fine into blob columns. This must be user error. Previous Comments: ------------------------------------------------------------------------ [2011-03-13 12:20:34] alec What mysql version? What is the type of the 'data' column? What is the database encoding? What driver are you using (mysql/mysqli)? What PHP version? The compressed string contains some non-ascii characters. The second character is \x9C. This can be some encoding issue. ------------------------------------------------------------------------ [2011-02-17 11:52:05] fzhan I think it was MyISAM ------------------------------------------------------------------------ [2011-02-16 10:17:50] alec What database engine are you using? ------------------------------------------------------------------------ [2010-04-02 15:08:07] fzhan Description: ------------ using autoExecute with MDB2_AUTOQUERY_INSERT, provide a gzcompressed() str, failed to add the full data into the database. Test script: --------------- $this->fields=array('data' => gzcompress('test')); $resource = $this->dbBaseObject->extended->autoExecute($this->tableName, $this->fields, MDB2_AUTOQUERY_INSERT); if (PEAR::isError($resource)) { die($resource->getMessage()); } Expected result: ---------------- value of gzcompress('test') Actual result: -------------- x (seems to be partial data remained in the field) ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=17287&edit=1

« previous php.pear.bugs (#9221) next »