Bug #14718 [NEW]: apc_fetch() bug

From: Date: Sun, 28 Sep 2008 05:36:15 +0000
Subject: Bug #14718 [NEW]: apc_fetch() bug
Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-6286@lists.php.net to get a copy of this message
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 --

« previous php.pear.webmaster (#6286) next »