title: Cannot install PDO on CentOS
body: <p>I know there is several instances of this question throughout stackoverflow but I am not finding a solution.</p>
  
  <p>I am running CentOS with Apache and PHP 5.3</p>
  
  <p>A .php script is giving me this error:</p>
  
  <pre><code>Fatal error: Class 'PDO' not found in ...
  </code></pre>
  
  <p>I ran <code>phpinfo();</code> and the only place "pdo" exists on the page is in the "Configure Command"  <code>'--disable-pdo'</code> line. </p>
  
  <p>I attempted <code>#yum install php-pdo</code> but no packages exist. </p>
  
  <p>I also attempted <code>#pecl install pdo</code> and i get these errors at the end:</p>
  
  <pre><code>/root/tmp/pear/PDO/pdo_dbh.c: In function 'pdo_stmt_instantiate':
  /root/tmp/pear/PDO/pdo_dbh.c:410: error: 'zval' has no member named 'refcount'
  /root/tmp/pear/PDO/pdo_dbh.c:411: error: 'zval' has no member named 'is_ref'
  /root/tmp/pear/PDO/pdo_dbh.c: In function 'pdo_stmt_construct':
  /root/tmp/pear/PDO/pdo_dbh.c:435: error: 'zend_fcall_info' has no member named 'object_pp'
  /root/tmp/pear/PDO/pdo_dbh.c:458: error: 'zend_fcall_info_cache' has no member named 'object_pp'
  /root/tmp/pear/PDO/pdo_dbh.c: In function 'zim_PDO_setAttribute':
  /root/tmp/pear/PDO/pdo_dbh.c:752: error: 'zval' has no member named 'refcount'
  /root/tmp/pear/PDO/pdo_dbh.c: In function 'zim_PDO_getAttribute':
  /root/tmp/pear/PDO/pdo_dbh.c:818: error: 'zval' has no member named 'refcount'
  /root/tmp/pear/PDO/pdo_dbh.c: In function 'pdo_hash_methods':
  /root/tmp/pear/PDO/pdo_dbh.c:1122: warning: assignment discards qualifiers from pointer target type
  /root/tmp/pear/PDO/pdo_dbh.c:1126: warning: assignment discards qualifiers from pointer target type
  make: *** [pdo_dbh.lo] Error 1
  ERROR: `make' failed
  </code></pre>
  
  <p>Then on the php.net doc it basically says the package comes standard in php installations since PHP 5.1.</p>
  
  <p>I added the line <code>extension=pdo.so</code> to php.ini and restarted Apache and the problem persists. Any suggestions?</p>