From: [EMAIL PROTECTED]
Operating system: Apache
PHP version: 4.1.1
PHP Bug Type: Zlib Related
Bug description: Warning: gzinflate: buffer error in
/usr/local/apache/elca_rmg/class.FTemplateE
Receive the following error with only 15 consecutive characters entered.
Warning: gzinflate: buffer error in
/usr/local/apache/elca_rmg/class.FTemplateExt.php on line 153
What follows is the code updating the SQL files:
$gzsize = strlen($description) + 4; // added 4 more than req'd
$gzcompress = gzdeflate ($description,6);
$gzcompress = addslashes($gzcompress); //Reqd for SQL updates
$query = "UPDATE htmlcontent SET record_nbr = \"$record_nbr\", gzcompress =
\"$gzcompress\", gzsize = $gzsize WHERE record_nbr = \"$record_nbr\"";
}
general_update($errno,$errmsg,$rowsaffected, $result, $s_synod_id, $query);
// UPDATE the record
*******************************************************
Next I attempt to read the record back and unzip gzcompress
Note that $description consists of 20 'a' characters. Any repetitive char
will do and only 15 to 20 are req'd
*******************************************************
$query = "SELECT * FROM htmlcontent WHERE record_nbr = \"$record_nbr\"";
general_read($errno, $errmsg,$numrows, $result_html, $s_synod_id,
$query);
if ($numrows > 0) {
if ($row_html = mysql_fetch_array ($result_html)) {
$content = stripslashes($row_html["gzcompress"]);
if (strlen($content) > 0) {
******Error occurs on the following instruction*********
$new = gzinflate($content,$row_html["gzsize"]);
--
Edit bug report at: http://bugs.php.net/?id=14939&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]