Doc #54244 [NEW]: APC RFC1867 - 'rate' computed when upload finished

From: Date: Sun, 13 Mar 2011 18:54:37 +0000
Subject: Doc #54244 [NEW]: APC RFC1867 - 'rate' computed when upload finished
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6076@lists.php.net to get a copy of this message
From: Operating system: Any PHP version: trunk-SVN-2011-03-13 (SVN) Package: Documentation problem Bug Type: Documentation Problem Bug description:APC RFC1867 - 'rate' computed when upload finished Description: ------------ http://www.php.net/manual/en/apc.configuration.php#ini.apc.rfc1867 The documentation should be updated to mention that $info['rate'] is only available when the upload of all files are completed. If a file is uploading and you are checking the status, the upload speed/rate needs to be computed manually. I thought I had an old or buggy version of apc but it's the current behavior and makes sense: http://svn.php.net/repository/pecl/apc/trunk/apc_rfc1867.c Test script: --------------- // Exampe to calculate the rate as the file is uploading $info = apc_fetch($key); if( !isset($info['rate']) ) { $ms = (microtime(true) - (float)$info['start_time']); if($ms > 0) $info['rate'] = $info['current'] / $ms; } -- Edit bug report at http://bugs.php.net/bug.php?id=54244&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54244&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54244&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54244&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54244&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54244&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54244&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54244&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54244&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54244&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54244&r=support Expected behavior: http://bugs.php.net/fix.php?id=54244&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54244&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54244&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54244&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54244&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54244&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54244&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54244&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54244&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54244&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54244&r=mysqlcfg

« previous php.doc.bugs (#6076) next »