Function apc_add() added from version 3.0.13 (changelog)
so all appearances of apc_add() should be replaced by apc_store().
Found at lines 191 & 193 in apc.php

Comments

btmash’s picture

I posted a potential patch for the lock() function in #245871: Fatal error: Call to undefined function apc_add(). I also noticed that some parts call apc_store() while the lock calls apc_add() - is it so some data is basically locked or is it for some other reason?

slantview’s picture

Status: Needs work » Closed (works as designed)

apc_add fails if the current lockfile exists. it is a safety mechanism to not allow multiple processes to overwrite each other.

i would say that APC >= 3.0.13 is required to use APC caching then. I will update the docs.