php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57251 Incorrect size reported
Submitted: 2006-09-21 06:46 UTC Modified: 2008-03-23 22:00 UTC
From: apc at tequilasolutions dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: Irrelevant OS: FC4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: apc at tequilasolutions dot com
New email:
PHP Version: OS:

 

 [2006-09-21 06:46 UTC] apc at tequilasolutions dot com
Description:
------------
After using apc_store and apc_fetch to store variables total size of variables stored goes negative, guessing the datatype used is wrapping.

Reproduce code:
---------------
http://www.tequilasolutions.com/apc.gif
http://www.tequilasolutions.com/apc2.gif

Expected result:
----------------
Correct total of bytes reported.

Actual result:
--------------
Negative total of bytes reported, probably overflowing the datatype used.  Lots of fragmentation start as soon as you use the apc_store() function.  Not sure if this is anything to worry about.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-21 06:46 UTC] apc at tequilasolutions dot com
Using latest APC.  Don't know if others are affected, but probably..
 [2008-03-17 00:25 UTC] shire@php.net
There where a number of type size bugs, I'm not sure if it's the same as this bug or not.  Could you please upgrade and verify if this is still an issue?  If it is do you have a way to consistently reproduce?
 [2008-03-17 04:59 UTC] apc at tequilasolutions dot com
I've not seen it recently, dont know how to reproduce and I am using the latest version so might as well close this?
 [2008-03-23 22:00 UTC] shire@php.net
Yeah, I'll close this for now, but if you see it again please just re-open this or make a new bug for me.  thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 23:01:28 2024 UTC