Hi Everyone!

I noted that this method requires the mysqlnd driver. I know also that the MySQL Native Driver is for PHP version 5.4.0 now the default for all MySQL extensions (i.e., mysql, mysqli and PDO_MYSQL).

I used phpize to compile mysqlnd.

if (extension_loaded('mysqlnd')) {
	echo 'extension mysqlnd is loaded'; //works
}

But when I call to mysqli_stmt::get_result(), PHP give me "PHP Fatal error: Call to undefined method mysqli_stmt::get_result()".

I don't know why?

Please give me helpful hints.

Thanks in advance.

    Comannd:
    php -i | grep -i mysqlnd

    return:

    mysqlnd
    mysqlnd => enabled
    Version => mysqlnd 5.0.10 - 20111026 - $Id: b0b3b15c693b7f6aeb3aa66b646fee339f175e39 $
    Loaded plugins => mysqlnd,example,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password
    mysqlnd statistics =>

      Yes. The extension mysqli is loaded.

      if (extension_loaded('mysqli')) {
          echo 'extension mysqli is loaded'; //works
      }
      

      php -i | grep mysqli

      mysqli
      mysqli.allow_local_infile => On => On
      mysqli.allow_persistent => On => On
      mysqli.default_host => no value => no value
      mysqli.default_port => 3306 => 3306
      mysqli.default_pw => no value => no value
      mysqli.default_socket => no value => no value
      mysqli.default_user => no value => no value
      mysqli.max_links => Unlimited => Unlimited
      mysqli.max_persistent => Unlimited => Unlimited
      mysqli.reconnect => Off => Off

        I've got it now.

        mysqlnd wasn't enabled via --enable-mysqlnd

        php -i | grep -i mysqlnd

        Configure Command =>  './configure'  '--prefix=/usr/local/php54' '--enable-debug' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-zlib=shared' '--enable-mysqlnd'
        Client API version => mysqlnd 5.0.10 - 20111026 - $Id: b0b3b15c693b7f6aeb3aa66b646fee339f175e39 $
        Client API library version => mysqlnd 5.0.10 - 20111026 - $Id: b0b3b15c693b7f6aeb3aa66b646fee339f175e39 $
        mysqlnd
        mysqlnd => enabled
        Version => mysqlnd 5.0.10 - 20111026 - $Id: b0b3b15c693b7f6aeb3aa66b646fee339f175e39 $
        Loaded plugins => mysqlnd,example,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password
        mysqlnd statistics =>

          You can mark this thread 'resolved' by using the Thread Tools at the top of the post.

            Write a Reply...