Edit report at https://bugs.php.net/bug.php?id=56685&edit=1
ID: 56685 Updated by: ssuffic...@php.net Reported by: phyre at rogers dot com Summary: PDO shared fails to allow pecl to install -Status: Open +Status: Feedback Type: Bug -Package: PDO +Package: *General Issues Operating System: Debian Linux 3.1 PHP Version: 5_1 CVS-2005-11-30 Block user comment: N Private report: N New Comment: Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [2009-05-31 21:51:13] Jakub at Horky dot earth Here is a fix. You don't need to install PDO extension provided by pecl if pdo package is contained in your distribution (e.g. Debian) itself. In PEAR directory, edit your Dependency2.php file - add this line at the beginning of extension_loaded() function: --- dl("$name.so"); --- Or, if you want to be more precisious, you can add these lines instead: --- if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { $prefix = 'php_'; $suffix = '.' . ( defined('PHP_SHLIB_SUFFIX') ? PHP_SHLIB_SUFFIX : 'dll' ); } else { $prefix = ''; $suffix = '.' . ( defined('PHP_SHLIB_SUFFIX') ? PHP_SHLIB_SUFFIX : 'so' ); } @dl($prefix . $name . $suffix); --- Have a nice day ------------------------------------------------------------------------ [2007-11-21 14:16:30] anonymous_two at example dot com Had problems with shared module for PDO, was googling around and found this page ;) This worked for me: 1. pecl uninstall PDO_MYSQL 2. PHP_PDO_SHARED=1 pecl install PDO_MYSQL ------------------------------------------------------------------------ [2007-08-09 16:34:04] nlgordon at gmail dot com With php 5.2.0 and higher this becomes more troublesome in that doing `pecl upgrade pdo` will always downgrade the pdo extension. This removes the ATTR_DEFAULT_FETCH_MODE constant from the class as well as other fixes in the latest version of the PDO module. Updating pecl with the latest version of what is in the stable 5.2.x tree would solve this problem. ------------------------------------------------------------------------ [2007-06-29 15:39:33] c_petro at yahoo dot com sometimes configure cannot find the mysql_config file. Try doing: #ln -s /path/to/mysql/bin/mysql_config /usr/bin/mysql_config #pecl install pdo_mysql that's it ------------------------------------------------------------------------ [2007-01-25 22:15:09] sean at the-murrays dot net I tried PHP_PDO... but it didn't like the fact I wasn't root. Using Ubuntu, I naturaly put sudo in front of it, but that failed. The trick I did here was to put the line in a file i.e. pdo_sqlite, then I entered sudo sh pdo_sqlite ... which worked. Thanks for the help ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=56685 -- Edit this bug report at https://bugs.php.net/bug.php?id=56685&edit=1