Skip to content

Should use apcu_* instead of apc_* if available #114

@layanto

Description

@layanto

Since PHP5.5+ with its included OpCache, APC (opcache+userland cache) is no longer used. APCu is used instead. APCu is basically APC with opcache part removed. For PHP5.5 and PHP5.6, APCu included APC backward compatibility functions where all apc_* functions (eg apc_fetch) will internally call apcu_* functions. With PHP7, APC backward compatibility feature is no longer included/enabled by default. As such apc_* functions no longer work.
Any chance of adding NotORM_Cache_APCu class to Cache.php where apc_fetch and apc_store are replaced with apcu_fetch and apcu_store respectively?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions