ID:               48158
 Updated by:       il...@php.net
 Reported By:      d dot snytkine at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         PDO related
 Operating System: RHEL 5
 PHP Version:      5.2.9
 New Comment:

Is the PDO module loaded?


Previous Comments:
------------------------------------------------------------------------

[2009-05-06 13:26:52] d dot snytkine at gmail dot com

I have just rebuild my php this time making pdo and pdo_mysql static
instead of shared and if fixed the problem

I guess that there really must be a bug when pdo and pdo_mysql are
built as shared modules
because even some other constants were not available when pdo was a
shared module.

There 2 were not available also:
PDO::ATTR_DEFAULT_FETCH_MODE

PDO::FETCH_PROPS_LATE

even though there we supposed to be available since php 5.2.0 there
were not available on php 5.2.9 when pdo was built as shared module

------------------------------------------------------------------------

[2009-05-06 12:49:31] s dot snytkine at gmail dot com

The is some info from my phpinfo:
php version 5.2.9

was build with these config options:
'--enable-pdo=shared' '--with-pdo-mysql=shared'
'--with-pdo-sqlite=shared' '--with-sqlite=shared' 

Further down in phpinfo:
PDO drivers     mysql 

and then:
pdo_mysql
PDO Driver for MySQL, client library version    5.0.45


Then in php.ini I have:
extension="rar.so"
extension="memcache.so"
extension="memcached.so"
extension="pdo.so"
extension="pdo_mysql.so"
extension="mailparse.so"
extension="uploadprogress.so"

------------------------------------------------------------------------

[2009-05-06 11:01:26] fel...@php.net

I can't reproduce it. Please, check the PHP version again.

------------------------------------------------------------------------

[2009-05-06 03:07:01] d dot snytkine at gmail dot com

Description:
------------
Even though the documentation states that this constant is available as
of php 5.2.3, In PHP 5.2.9, attempts to use PDO::FETCH_KEY_PAIR result
in
PHP Fatal error:  Undefined class constant 'FETCH_KEY_PAIR' 





------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48158&edit=1

Reply via email to