[PECL-BUG] Bug #14718 [NEW]: apc_fetch() bug
[email protected] ("phpdesigner at yahoo dot com")
| Newsgroups | php.pear.webmaster |
|---|---|
| Message-ID | <[email protected]> |
From: phpdesigner at yahoo dot com
Operating system: WIN32
Package version:
PHP version: 5.2.5
Package: Bug System
Bug Type: Bug
Bug description: apc_fetch() bug
Description:
------------
I'm using latest version of APC for win32 to get upload progress.
All is good, Thanks for it's developers. But:
when I'm uploading a file, progress is good and show's total size,
uploaded size and start time. when i open new browser window and attemp to
upload another file( when the first file is uploading yet ) all the things
is wrong.
first file statistics will freeze and second file will show wrong
statistics:
-- total size: 11165814 bytes
-- current : 949774611244 bytes (uploaded bytes from first file plus
second file sizes!!!)
note that i change progress_key every time, but anythings is wrong.
-System software:
I'm using Win XP
Apache 2
PHP 5.2.5
php_apc.dll 3.0.17-dev
---
-system hardware:
One Pentium 4 cpu
768MB (256MB + 512MB) Ram
Reproduce code:
---------------
form.php:
--- $id = md5(rand(0, 99999).' '.rand(0,99999));
--- <input type="hidden" name="APC_UPLOAD_PROGRESS"
--- id="progress_key" value="<?=$id?>">
--- <input type="file" id="file" name="file"><br>
progress.php:
--- $id = $_GET['progress_key']; // get key from address
--- $status = apc_fetch('upload_'.$id); // file info
--- print_r($status); // show file info
php.ini variables set:
--- [apc]
--- apc.rfc1867 = On
Expected result:
----------------
stop statistics for first file and show wrong information for second file
when we are uploading both in one time.
--
Edit bug report at http://pecl.php.net/bugs/bug.php?id=14718&edit=1
--