ID:               47819
 User updated by:  shahar dot e at zend dot com
 Reported By:      shahar dot e at zend dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         PDO related
 Operating System: Linux i386
 PHP Version:      5.3.0RC1
 Assigned To:      mysql
 New Comment:

I just tried again with today's snapshot (php5.3-200903310830) and
looks like it is fixed. I no longer get the message, and pdo_mysql is
indeed loaded. 

Thanks!


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

[2009-03-30 14:48:56] shahar dot e at zend dot com

This still happens with the latest snapshot you linked to. 
Here are the relevant parts from sapi/cli/php -i:

PHP Version => 5.3.0RC2-dev
System => Linux wintergreen 2.6.28-gentoo-r2 #1 PREEMPT Sun Mar 8
17:10:56 IST 2009 i686
Build Date => Mar 30 2009 17:42:20
Configure Command =>  './configure'  '--disable-all' '--enable-pdo'
'--with-pdo-mysql=shared,mysqlnd' '--enable-debug'
Server API => Command Line Interface
Debug Build => yes
Thread Safety => disabled

mysqlnd

mysqlnd => enabled
Version => mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.22 $
Command buffer size => 2048
Read buffer size => 32768
Collecting statistics => Yes
Collecting memory statistics => No

PDO

PDO support => enabled

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

[2009-03-30 14:06:49] johan...@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

I still didn't reproduce it but applied a patch with some guessing.
Please try the snapshot and see whether it helps.

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

[2009-03-30 13:15:58] johan...@php.net

Ah, the debug piece is important, investigating ...

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

[2009-03-30 11:59:05] shahar dot e at zend dot com

Yes, I'm building PHP from scratch with the above mentioned configure
command.

I think that in order to reproduce this you need to add --enable-debug
to your ./configure, as so (I just tried this):

$ ./configure --disable-all --enable-pdo
--with-pdo-mysql=shared,mysqlnd --enable-debug
$ make
$ sapi/cli/php -d extension_dir=modules/ -d extension=pdo_mysql.so -m
PHP Warning:  PHP Startup: Unable to load dynamic library
'modules/pdo_mysql.so' - modules/pdo_mysql.so: undefined symbol:
mysqlnd_debug_init in Unknown on line 0

I assume that ext/mysqlnd/mysqlnd_debug.c needs to be added as a build
dependency of pdo_mysql if --enable-debug is set, but I am not
experienced enough with autoconf et al to figure this out exactly. 

Thanks,
Shahar.

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

[2009-03-30 11:14:13] johan...@php.net

Are you loading the module into a PHP which has mysqlnd enabled?
Usually mysqlnd is automatically activated once another extension using
mysqlnd is being activated.

I tried the following which worked:

$ ./configure --disable-all --enable-pdo
--with-pdo-mysql=shared,mysqlnd
$ make
$ sapi/cli/php -d extension_dir=modules/ -d extension=pdo_mysql.so -m


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

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
    http://bugs.php.net/47819

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

Reply via email to