#22471 [NEW]: Getting "inflate" buffer error
| From: | 4u at direct-netware dot de | Date: | Fri, 28 Feb 2003 09:23:18 +0000 |
| Subject: | #22471 [NEW]: Getting "inflate" buffer error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-34504@lists.php.net to get a copy of this message | ||
From: 4u at direct-netware dot de
Operating system: WinNT
PHP version: 4.3.1
PHP Bug Type: Zlib Related
Bug description: Getting "inflate" buffer error
>>> Description:
>> Error report from the webware:
BOF
direct WebenginE
Your Community Center
Debug File Service (DFS)
If you find a possible bug then please report it here:
http://www.direct-netware.de/redirect.php?we.itracker
VERSION_DATA:
v1.00.a032802 [ALPHA]
SCRIPT_NAME:
dwe.php
GET_DATA:
s=edocs
a=doc
dsd=3e324cb3b93af;3e324cf65be9c
tf=default
lang=de
uuid=ff0c192690c99cfc962b36ffcc18ae29
POST_DATA:
TIMESTART_DATA:
1046423297 - 0.76239000
DFS_DATA:
0.024875 .:. dWE/dwe.php _main_ (267)
0.025251 .:. dWE/system/global/dwe_dbsystem_mysql_basics.php
-direct_opendb ()- (43) .:. 0.000617
[...]
0.109956 .:. UMF/system/global/direct_zipfile_functions.php
-direct_getzipentry (+zipp,content.xml,0,0,1)- (285)
0.110336 .:. UMF/system/global/direct_zipfile_functions.php
-direct_getzipentries (+zipp,0)-File- (171) .:. 0.000953
0.138688 .:. PHP .:. gzinflate() [<a
href='http://www.php.net/function.gzinflate'>function.gzinflate</a>]:
buffer error (2) .:.
D:\Server\data\www8010\docs\system\global\direct_zipfile_functions.php
(114) .:. 4.3.1 (WINNT) .:. Debug mode 3 security breach warning
0.141387 .:. PHP .:. gzinflate() [<a
href='http://www.php.net/function.gzinflate'>function.gzinflate</a>]:
buffer error (2) .:.
D:\Server\data\www8010\docs\system\global\direct_zipfile_functions.php
(128) .:. 4.3.1 (WINNT) .:. Debug mode 3 security breach warning
0.147579 .:. PHP .:. gzinflate() [<a
href='http://www.php.net/function.gzinflate'>function.gzinflate</a>]:
buffer error (2) .:.
D:\Server\data\www8010\docs\system\global\direct_zipfile_functions.php
(128) .:. 4.3.1 (WINNT) .:. Debug mode 3 security breach warning
0.149777 .:. PHP .:. gzinflate() [<a
href='http://www.php.net/function.gzinflate'>function.gzinflate</a>]:
buffer error (2) .:.
D:\Server\data\www8010\docs\system\global\direct_zipfile_functions.php
(128) .:. 4.3.1 (WINNT) .:. Debug mode 3 security breach warning
0.15207 .:. PHP .:. gzinflate() [<a
href='http://www.php.net/function.gzinflate'>function.gzinflate</a>]:
buffer error (2) .:.
D:\Server\data\www8010\docs\system\global\direct_zipfile_functions.php
(128) .:. 4.3.1 (WINNT) .:. Debug mode 3 security breach warning
0.156753 .:. PHP .:. gzinflate() [<a
href='http://www.php.net/function.gzinflate'>function.gzinflate</a>]:
buffer error (2) .:.
D:\Server\data\www8010\docs\system\global\direct_zipfile_functions.php
(128) .:. 4.3.1 (WINNT) .:. Debug mode 3 security breach warning
0.159024 .:. PHP .:. gzinflate() [<a
href='http://www.php.net/function.gzinflate'>function.gzinflate</a>]:
buffer error (2) .:.
D:\Server\data\www8010\docs\system\global\direct_zipfile_functions.php
(128) .:. 4.3.1 (WINNT) .:. Debug mode 3 security breach warning
0.111974 .:. UMF/system/global/direct_zipfile_functions.php
-direct_getzipdata (s,+zipp,4881,5656,1)- (107) .:. 0.04771
0.160127 .:. UMF/system/global/direct_zipfile_functions.php
-direct_closezip (+zipp)- (41)
0.161286 .:. UMF/system/global/direct_basics.php -direct_require
(oset/default/global/errors.dwe_oset.php)- (467)
[...]
0.210714 .:. UMF/system/global/direct_basics.php -direct_exit ()- (449)
TIMEEND_DATA:
1046423298 - 0.94910700
REMOTE_DATA:
[...]
EOF
The following lines are causing the above error report:
[Variable names are changed for a better overview)
> Original:
if ($tcompressed) { $direct_tempdata_1string = gzinflate (@fread
($zipp,$tlength)); }
else { $direct_tempdata_1string = @fread ($zipp,$tlength); }
> Possible fix (unsuccessful):
if ($tcompressed)
{
$direct_tempdata_1string = "";
$direct_tempdata_2string = 0;
do
{
if (($tlength - $direct_tempdata_2string) > 999) {
$direct_tempdata_3string = 1000; }
else { $direct_tempdata_3string = ($tlength -
$direct_tempdata_2string); }
$direct_tempdata_2string += $direct_tempdata_3string;
$direct_tempdata_1string .= gzinflate (@fread
($zipp,$direct_tempdata_2string));
}
while ($direct_tempdata_2string < $tlength);
}
else { $direct_tempdata_1string = @fread ($zipp,$tlength); }
> Var-Details:
$direct_tempdata_1string = Result string (uncompressed data from a zip
archive)
$direct_tempdata_2string = Bytes already read from the archive
$direct_tempdata_3string = Next byte length to read
I tried to reduce the $direct_tempdata_3string down to 100 byte for
inflating but still getting the buffer error (2) seen in the report
above.
>>> Modules:
Seems to be not required for this bug report
>>> Setup data:
Windows XP
PHP 4.3.1
Apache 2.0.44
MySQL 4.0.9-gamma
Administrative rights: yes
--
Edit bug report at http://bugs.php.net/?id=22471&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22471&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22471&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22471&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22471&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22471&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22471&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22471&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22471&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22471&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22471&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22471&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22471&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22471&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22471&r=gnused