PHP persistent database connections are handled by each database module itself and have nothing to do with code caching.
I believe that your informant is quite wrong about PHP scoping problems with code caching. Perhaps the person meant something related to stupid old bugs like this: Bug #5875 APC removes $_SERVER from global scope. Note the |