title: APCu not working on webserver
body: <p>I am trying to use APCu, i have re-installed everything lately but it seems as if APCu is not working.</p>
  
  <p>I am using the following script to test if it can write the cache:</p>
  
  <pre><code>&lt;?php
      // Simple Person class
      class Person {
          private $name;
          private $age;
  
          public function setName($name) {
              $this-&gt;name = $name;
          }
  
          public function setAge($age) {
              $this-&gt;age = $age;
          }
  
          public function getName() {
              return $this-&gt;name;
          }
  
          public function getAge() {
              return $this-&gt;age;
          }
      }
  
      // Check if Person object found from cache
      if ($obj = apc_fetch('person')) {
          echo "Person data from cache: ", "&lt;br /&gt;";
          echo "Name: ", $obj-&gt;getName(), "&lt;br /&gt;";
          echo "Age: ", $obj-&gt;getAge(), "&lt;br /&gt;";
      }
      else {
          echo 'Person data not found from cache...saving', "&lt;br /&gt;";
          $obj = new Person;
          $obj-&gt;setName('Test Person');
          $obj-&gt;setAge(35);
          apc_add('person', $obj, 3600);
      }
  ?&gt;
  </code></pre>
  
  <p>Running this doesn't give me any errors but it alwasy says: "Person data not found..." which implicates that the cache is not working as it is supposed to.</p>
  
  <p>In my php.ini i have configured it like this:</p>
  
  <pre><code>extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20100525"
  extension=apcu.so
  
  [apcu]
  
  apc.enabled = 1
  apc.shm_size=1024M
  apc.max_file_size=10M
  apc.num_files_hint=20000
  apc.user_entries_hint=20000
  </code></pre>
  
  <p>I have recompiled everything but still no luck.</p>
  
  <p>I am running the latest cpanel version. and phpinfo() also says that apcu is installed, i am running on CentOS.</p>