shams Posted September 7, 2022 Share Posted September 7, 2022 (edited) When i run this code: <?php $bar = 'BAR'; apc_store('foo', $bar); var_dump(apc_fetch('foo')); ?> get this error: PHP Fatal error: Uncaught Error: Call to undefined function apc_store() This is phpinfo() for apcu: APCu Support Enabled Version 5.1.21 APCu Debugging Disabled MMAP Support Enabled MMAP File Mask no value Serialization Support php Build Date Jan 4 2022 17:27:51 Directive Local Value Master Value apc.coredump_unmap Off Off apc.enable_cli Off Off apc.enabled On On apc.entries_hint 4096 4096 apc.gc_ttl 3600 3600 apc.mmap_file_mask no value no value apc.preload_path no value no value apc.serializer php php apc.shm_segments 1 1 apc.shm_size 32M 32M apc.slam_defense Off Off apc.smart 0 0 apc.ttl 0 0 apc.use_request_time Off Off Edited September 7, 2022 by shams Quote Link to comment https://forums.phpfreaks.com/topic/315290-php-fatal-error-uncaught-error-call-to-undefined-function-apc_store/ Share on other sites More sharing options...
Barand Posted September 7, 2022 Share Posted September 7, 2022 According to my IDE and php.net... Quote Link to comment https://forums.phpfreaks.com/topic/315290-php-fatal-error-uncaught-error-call-to-undefined-function-apc_store/#findComment-1600215 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.