Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apc_sma_info() always returns an empty array #2976

Open
serpyre opened this issue Jun 18, 2014 · 4 comments
Open

apc_sma_info() always returns an empty array #2976

serpyre opened this issue Jun 18, 2014 · 4 comments

Comments

@serpyre
Copy link

serpyre commented Jun 18, 2014

Using APC as an app cache, however when running HHVM the apc_sma_info returns an empty array. If running via php-fpm (extension=apc.so) it returns the correct size array, is there some config that needs to be set to enable HHVM to talk to apc or is this a bug - have tried them all and so far no success. Regards.

@fredemmott
Copy link
Contributor

APC generally works in HHVM, however we the apc_smc_info function is just a stub, and will always return an empty array in HHVM. Editing issue title to match.

@fredemmott fredemmott changed the title APC Cache with HHVM apc_sma_info() always returns an empty array Jun 18, 2014
@fredemmott
Copy link
Contributor

I'm not sure how much sense it makes in HHVM though - given HHVM doesn't use a multi-process model we're probably not using shared memory for APC.

@dariorussi-zz
Copy link
Contributor

I am working in making apc_smc_info return useful data. Unfortunately we had other work to do around performance of APC and that was not high in priority. I should commit something this week though

dario

From: Fred Emmott <[email protected]mailto:[email protected]>
Reply-To: facebook/hhvm <[email protected]mailto:[email protected]>
Date: Wednesday, June 18, 2014 at 10:32 AM
To: facebook/hhvm <[email protected]mailto:[email protected]>
Subject: Re: [hhvm] APC Cache with HHVM (#2976)

APC generally works in HHVM, however we the apc_smc_info function is just a stub, and will always return an empty array in HHVM. Editing issue title to match.


Reply to this email directly or view it on GitHubhttps://urldefense.proofpoint.com/v1/url?u=#2976.

@dariorussi-zz
Copy link
Contributor

As mentioned in the other thread we should have something for this committed this week.
Sorry took us so long to get on this but we should have some basic stats soon

dario

From: Fred Emmott <[email protected]mailto:[email protected]>
Reply-To: facebook/hhvm <[email protected]mailto:[email protected]>
Date: Wednesday, June 18, 2014 at 10:34 AM
To: facebook/hhvm <[email protected]mailto:[email protected]>
Subject: Re: [hhvm] apc_sma_info() always returns an empty array (#2976)

I'm not sure how much sense it makes in HHVM though - given HHVM doesn't use a multi-process model we're probably not using shared memory for APC.


Reply to this email directly or view it on GitHubhttps://urldefense.proofpoint.com/v1/url?u=#2976.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants