Skip to content

APCu zend_mm_heap issues on latest version #1

@seanmcn

Description

@seanmcn

Since upgrading from PHP 7.0.7 to PHP 7.0.8 (using APCu 5.1.5) I've encountered an issue with using APCu to cache data.

Basically caching the value works correctly, I'm also only noticing this occurring when caching arrays.

For some reason the first call to apcu_fetch() works fine, but on the second call it presents me with a zend_mm_heap corrupted error and absolutely kills the page with no nice 404 or 500.

$key = 'cache_key';

apcu_store($key, ['net' => 23]);

$result = apcu_fetch($key);

print_r($result); // At this point result is as expected.

$result = apcu_fetch($key); // This causes error: `zend_mm_heap corrupted`

print_r($result); // Never gets printed

Rolling back to 7.0.7 fixes the issue so this really seems tied to 7.0.8. I was thinking perhaps it was just an issue with 7.0.8 overall however when I setup the same versions on a cloud 9 instance the error did not reproduce.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions